-
最近在研究快应用的style节点,发现我们的框架有很多对对象的引用,当页面销毁的时候,仍然会有很多的StyleNode节点仍然会保持对多个抽象对象引用。每次执行destroy的时候需要手动的进行null指向或者用性能极差的delete操作。到底有没有什么解决的方法?
众所周知,v8有自己的GC,闭包会阻止GC,手动将对象指向null或者undefined也可以进行垃圾回收(可以使用profile…
-
-
-
The first lines of the BHIMA `Store` starts with:
https://github.com/IMA-WorldHealth/bhima/blob/9e66f548538674242f0043f5a74ef7676e9a3e97/client/src/js/services/Store.js#L4-L10
The `Store` was li…
-
介绍下 Map 和 WeakMap 的用法和区别
-
I want to be able to pass around say, a WeakSet, without granting the ability to add things to it, or remove things from it. Why can't I?
-
Hi! I caught an error when trying to pass `targetCache`.
Problem appears if call `createProxy` with a regular object, then with the same (by link) but frozen object.
```typescript
const targetC…
-
**Expected behavior:**
When iterating over a `WeakMap` keys have the type set via generic definition inferred.
**Actual behavior:**
When iterating over a `WeakMap` keys have the `mixed` type.
…
-
### NextUI Version
2.4.6
### Describe the bug
Just spent a huge amount of time debugging an issue when trying to provide a list of IDs/strings to an autocomplete component and battling this mysteri…
-
Haiku x86_64 hrev53112
```rst
================================
gc 8.0.4: ./test-suite.log
================================
# TOTAL: 16
# PASS: 14
# SKIP: 0
# XFAIL: 0
# FAIL: 2
# X…