Enable JavaScript bytecode compression to save memory
Categories
(Core :: JavaScript Engine, enhancement, P4)
Tracking
()
People
(Reporter: Tom25519, Unassigned)
References
(Blocks 1 open bug)
Details
AFAIK, browser.cache.jsbc_compression_level is a config to control compression level for cached JavaScript bytecode, I think it will save memory. But I don't know
- How performance will affected by it.
- Which compression level should be set (balance CPU usage, i.e. power usage, memory usage, JS performance).
Oops, I encountered some tabs crashing, but I don't know if it related with this config:
https://crash-stats.mozilla.org/report/index/bp-03159365-54ac-4082-bb3e-579870240610
https://crash-stats.mozilla.org/report/index/bp-5841b906-4e26-4d95-bf41-3ce1d0240610
https://crash-stats.mozilla.org/report/index/bp-a36354fc-1627-47e7-8c9c-94eca0240610
https://crash-stats.mozilla.org/report/index/bp-e0e1d8f9-8789-4859-8335-262ea0240610
https://crash-stats.mozilla.org/report/index/bp-e179501f-1c51-4ae9-a5b7-562a90240610
https://crash-stats.mozilla.org/report/index/bp-32d897b6-53fd-48fa-a223-d60ca0240610
https://crash-stats.mozilla.org/report/index/bp-ff924519-24a3-41c3-8fa5-3fb470240610
https://crash-stats.mozilla.org/report/index/bp-13a41a66-de3d-4b26-af7f-a41bb0240610
https://crash-stats.mozilla.org/report/index/bp-79e9e1c6-7406-47ce-8c80-0ef8c0240610
Comment 2•3 months ago
|
||
Hi :Tom25519,
The main benefit of this pref is to save bandwidth when sending the JavaScript bytecode to the main process to be cached, and to save disk space in the cache. We do still keep the bytecode uncompressed in memory, so I don't expect there will be an improvement there, and there isn't a performance improvement from setting this pref (though maybe in the future we can figure out why there isn't one and fix it).
Description
•