By caching the right XOW for the outer window in the inner window's XPCNativeWrapper (right now, we waste a word there), we won't have to explicitly outerize, which should give some speedup. Note that the XOW we hand back for the inner window is constant for the lifetime of the inner window, so we only need to invalidate this cache when the XOW itself dies, not on window navigation. On testcases that bang heavily on 'this' on the global object, I think this might save ~2% (maybe more once the patch for bug 570662 lands).
With wrapping and compartments, I don't think we can do this anymore.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.