Is compiled javascript caching used in Android WebView

131 views
Skip to first unread message

Vu Minh Tam

unread,
Jun 23, 2016, 10:46:43 PM6/23/16
to Chromium-dev
Hi, 

I came across this blog post http://blog.chromium.org/2015/03/new-javascript-techniques-for-rapid.html, which mentioned that: 

Code caching is another new technique that helps speed up page loading, specifically on repeated visits to the same page. Normally, the V8 engine compiles the page’s JavaScript on every visit, turning it into instructions that a processor understands. This compiled code is then discarded once a user navigates away from the page as compiled code is highly dependent on the state and context of the machine at compilation time. Chrome 42 introduces an advanced technique of storing a local copy of the compiled code, so that when the user returns to the page the downloading, parsing, and compiling steps can all be skipped. Across all page loads, this allows Chrome to avoid about 40% of compile time and saves precious battery on mobile devices.

Is the feature applicable to Android WebView? Can anyone point me to the right code path? 

Thank you in advance, 

-- Tam  

Primiano Tucci

unread,
Jun 24, 2016, 6:11:09 AM6/24/16
to tam...@gmail.com, android-w...@chromium.org
chromium-dev -> android-webview-dev

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Reply all
Reply to author
Forward
0 new messages