mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-29 19:17:15 +02:00
For excessively long strings, we often end up spending a ton of time hashing and comparing them, and it basically ruins the value of the cache as optimization. This commit puts a cap (256) on the length of strings we put into the cache. The number is arbitrary and there may be value in tuning it.
12 KiB
12 KiB