mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
`find_binding_and_index` was doing a linear search, and while most environments are small, websites using JavaScript bundlers can have functions with very large environments, like youtube.com, which has environments with over 13K bindings, causing environment lookups to take a noticeable amount of time, showing up high while profiling. Adding a HashMap significantly increases performance on such websites.
8.9 KiB
8.9 KiB