blink/loader: Add a feature to keep ScriptResources alive.
ScriptLoader doesn't keep the ScriptResource instances for async scripts alive, which artificially decreases memory cache hit rates (see the attached bug for details and analysis). Add a feature to tie the lifetime of ScriptResource to the one of ScriptLoader. Bug: 1043679 Change-Id: I3dc46d778f2c601fbde0daf18aa47b4b1ed2cc56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033260Reviewed-by:Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Benoit L <lizeb@chromium.org> Cr-Commit-Position: refs/heads/master@{#739342}
Showing
Please register or sign in to comment