mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 17:12:41 +02:00
Using ensure_capacity() was a mistake, as that API is for specifying an exact needed capacity, while grow_capacity() is for growing at a reasonable rate. Amusingly, we ended up with very different behavior on macOS and Linux here, since ensure_capacity() calls kmalloc_good_size() which quantizes to malloc bucket sizes on macOS, but is effectively a no-op on Linux. Extreme slowdown on Linux caught by GarBench/marking-stress.js
24 KiB
24 KiB