mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
The find_source_record lambda was doing a reverse linear scan through the entire source map for every instruction emitted, resulting in quadratic behavior. This was catastrophic for large scripts like Octane/mandreel.js, where compile() dominated the profile at ~30s. Since both source map entries and instruction iteration are ordered by offset, replace the per-instruction scan with a forward cursor that advances in lockstep with instruction emission.
83 KiB
83 KiB