+v8-dev (take 2)

On Sat, Jun 4, 2022 at 12:37 AM Mark Meeus <[email protected]> wrote:

> Hi Everyone,
>
> I'm trying to figure out why chromium is not using script compilation
> cache when the script loaded from a page served by file:// (and not at all
> in an Android WebView)
>
> I am testing with this html:
> <html><head></head>
> <body>
> <script src="https://code.jquery.com/jquery-3.6.0.js";></script>
> </body></html>
>
> When serving this page over* file://* => performance profiler reports:
>
> *Streamed: true*
> *Compilation cache status: script not eligible*
>
> When serving over *http:// *
>
> *Streamed: false: script has code-cache available*
> *Compilation cache status: script loaded from cache*
> *Compilation cache: size127 kB*
>
>
> Having observed this behaviour with the Chromium profiling tool, I would
> like to trace it back in the Chromium source code.
>
> It's the first time I'm looking at Chromium code, and it's a bit
> overwhelming :-)
>
> I'm thinking the ScriptCacheConsumer would be involved, but a breakpoint
> in it's constructor doesn't seem to get hit when loading the page over http.
> The ScriptStreamer::ScriptDecoder DidReveiveData triggers on a breakpoint,
> even when the compilation cache is used.
>
>
> We have a pretty large javascript app which we also run on Android
> WebView, we could have a huge benefit from compiled script cache. On
> Android however, the script cache isn't always working on pages served over
> https either (script not eligible).
>
> So I'm actually searching for the code that decides wether a script is
> eligible or not for the code caching.
> Could anyone point me in the right direction?
>
> kind regards,
> Mark
>
> --
> --
> Chromium Developers mailing list: [email protected]
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/9fe77bd9-f4da-4b1d-a9ea-f5d701d72b6en%40chromium.org
> <https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/9fe77bd9-f4da-4b1d-a9ea-f5d701d72b6en%40chromium.org?utm_medium=email&utm_source=footer>
> .
>


-- 
Egor Pasko

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAH3q7_mz15hnR%2BC4a3rRmkYSYf5dK4cqUAfhRCEt%2BkVYDXNP5g%40mail.gmail.com.

Reply via email to