Created attachment 570360 [details] [diff] [review]
As described in 685358 comment 4, the FrameState's current behavior of scanning all entries in OOL and inline sync paths can cost a lot of time. This behavior was introduced with TI due to the need to keep the entire stack synced when making calls. Given this requirement, it is faster on large scripts to scan tracked entries instead. The attached patch reduces the sqlite compile time in bug 687127 from ~5250ms to ~4900ms.