ladybird/Userland
Andreas Kling 206479b2b5 LibJS: Cache UTF-16 strings on the VM
We were already caching UTF-8 and byte strings, so let's add a cache
for UTF-16 strings as well. This is particularly profitable whenever we
run regular expressions, since the output of regex execution is a set of
UTF-16 strings.

Note that this is a weak cache like the other JS string caches, meaning
that strings are removed from the cache as they are garbage collected.

This avoids billions of PrimitiveString allocations across a run of WPT,
significantly reducing GC activity.
2024-10-24 19:00:00 -04:00
..
Libraries LibJS: Cache UTF-16 strings on the VM 2024-10-24 19:00:00 -04:00
Services LibWeb+WebContent: Ensure elements are in view before clicking them 2024-10-24 18:59:51 -04:00
Utilities Utilities: Remove no-op calls to unveil and pledge 2024-10-18 18:16:18 +02:00