Open Bug 1901169 Opened 3 months ago Updated 3 months ago

Enable JavaScript bytecode compression to save memory

Categories

(Core :: JavaScript Engine, enhancement, P4)

enhancement

Tracking

()

UNCONFIRMED

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

  1. How performance will affected by it.
  2. Which compression level should be set (balance CPU usage, i.e. power usage, memory usage, JS performance).

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).

Severity: -- → N/A
Priority: -- → P4
See Also: → 1757833
Blocks: 1768255
You need to log in before you can comment on or make changes to this bug.