mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-14 02:46:22 +02: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. (cherry picked from commit 78ecde9923e954e8ae9bb8d7a8ceefc08a8130ae)
8.9 KiB
8.9 KiB