Turning off bytecode caching in service worker cache

32 views
Skip to first unread message

Vittal Pai

unread,
Sep 29, 2020, 3:05:28 PM9/29/20
to v8-dev
Is there a supported way of achieving this?

ByteCode caching is great for speed ups it helps with. But it can negatively impact perf on systems with lower disk IO through put. I am interested in understanding the pros and cons of these approaches on different machine hardware configs. Hence the question.

Thanks in advance!

Leszek Swirski

unread,
Sep 30, 2020, 5:25:04 AM9/30/20
to v8-dev
Hi Vittal,

This is more a chromium than a V8 question (V8 caches whatever you tell it to via the API). In chromium, I don't believe there's a flag for setting the service worker behaviour specifically, but there is a flag for disabling code caching entirely: --v8-cache-options=none


- Leszek

--
--
v8-dev mailing list
v8-...@googlegroups.com
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 v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/781101b3-f93f-4747-b5b5-57fb91426a6en%40googlegroups.com.

Vittal Pai

unread,
Sep 30, 2020, 12:46:52 PM9/30/20
to v8-dev
Thanks for the info Leszek!

Is the flag " --v8-cache-options=none" something I can pass to chromium from my website? How?

I am new to the web stuff and still learning the ropes. Apologies if this is a naïve question.

Yang Guo

unread,
Sep 30, 2020, 1:18:15 PM9/30/20
to v8-...@googlegroups.com
No. Maybe you could explain why you would want to do that? If it's about performance impact on devices with slow I/O, this is probably a feature that's best implemented in Chrome?

Yang

Vittal Pai

unread,
Sep 30, 2020, 2:05:13 PM9/30/20
to v8-dev
Hi Yang,

Yes, ideally this functionality must be built into Chromium (or V8 depending on the right place). And that was my initial question too... Is it possible to configure it? If it is,  then at this time I am only interested in evaluating it on such systems where I suspect bytecode caching in service worker is problematic. 

Looks like the answer is no such option is available today.

Thanks,
Vittal Pai

Reply all
Reply to author
Forward
0 new messages