diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-05 18:44:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-05 18:52:00 +0200 |
commit | 83bd6754776e8f3290c460feb28f261cffad6a9b (patch) | |
tree | 236fe3c0ee94d97c6c19cb1428c535edb3e5eb64 /README.md | |
parent | 19fc225b455957cf81d2038571a7f3713c01b555 (diff) | |
download | serenity-83bd6754776e8f3290c460feb28f261cffad6a9b.zip |
LibJS: Make WeakContainer pruning do less work
Instead of iterating *all* swept cells when pruning weak containers,
only iterate the cells actually *in* the container.
Also, instead of compiling a list of all swept cells, we can simply
check the Cell::state() flag to know if something should be pruned.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions