Comments (4)
the Alternative Data size column shows/holds a version of the file that was processed by Firefox in some way to reduce the amount of work needed to use it again
Ahh. Okay. Thank you for the clarification.
For my quick test, based on the Alternative Data size column:
box2d.js 757,914 bytes no compression
box2d.js 234,034 bytes level 2
box2d.js 228,689 bytes level 3
box2d.js 202,330 bytes level 7
Pretty cool.
Alternative Data size column has a version of the .js file that was parsed and converted to bytecode which is why the sizes are different, And
browser.cache.jsbc_compression_level
only affects the Alternative Data size.
I see now.
from betterfox.
Thank you for the thorough explanation! This is valuable.
about:cache?storage=disk
provides odd Alternative Data size when doing this. With browser.cache.jsbc_compression_level
at 3
, some values in the right column Alternative Data size is bigger than the left column Data size. Is that correct?
from betterfox.
Looks like there's also the prefs to alter when bytecode is saved, in case you'd like to test page load times with dom.script_loader.bytecode_cache.strategy
at -1
. You could also switch to -1
temporarily to do faster testing.
// PREF: strategy to use for when the bytecode should be encoded and saved
// [1] https://searchfox.org/mozilla-release/source/modules/libpref/init/StaticPrefList.yaml#3461-3488
// -1 = saved as soon as the script is seen for the first time, independently of the size or last access time
// 0 = saved in order to minimize the page-load time (default)
//user_pref("dom.script_loader.bytecode_cache.enabled", true); // DEFAULT
//user_pref("dom.script_loader.bytecode_cache.strategy", 0); // DEFAULT
from betterfox.
Thank you for the thorough explanation! This is valuable.
about:cache?storage=disk
provides odd Alternative Data size when doing this. Withbrowser.cache.jsbc_compression_level
at3
, some values in the right column Alternative Data size is bigger than the left column Data size. Is that correct?
The Data size column shows/holds the unprocessed file as it was cached/downloaded from the URL/server while the Alternative Data size column shows/holds a version of the file that was processed by Firefox in some way to reduce the amount of work needed to use it again so in the case of .js files the Alternative Data size column has a version of the .js file that was parsed and converted to bytecode which is why the sizes are different, And browser.cache.jsbc_compression_level
only affects the Alternative Data size.
More information about both the JSBC system which caches compiled JavaScript bytecode and the Alternative Data system/column are available at this link: https://blog.mozilla.org/javascript/2017/12/12/javascript-startup-bytecode-cache/
from betterfox.
Related Issues (20)
- Consider regression of GPC HOT 1
- Shortcuts Disappear after closing and reopening Firefox HOT 2
- Broken link in README HOT 1
- Add additional tracking protection for x.com HOT 2
- browser.contentblocking.category=strict breaks various websites HOT 2
- Remove NextDNS referral ID or mention sponsored link HOT 3
- browser.download.useDownloadDir HOT 1
- Google account login pop up not working HOT 1
- Floorp --> Yokoffing applied in Floorp --> can't change some settings later. HOT 4
- Facebook Login isn't saved HOT 11
- Crunchyroll issues HOT 12
- Firefox crashes when opening local HTML file (file size > 4MB) HOT 4
- Applying Fastfox.js HOT 11
- How to integrate Smoothfox into user.js ? HOT 2
- Dark mode settings revert to automatic after every restart HOT 1
- Downloads without prompt HOT 2
- Smoothfox.js - parse error quick fix HOT 1
- How to set page zoom with user.js ? HOT 2
- Is there a way to re-enable pocket? HOT 2
- Highlight information using blockquotes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterfox.