Skip to content

Investigate compressing omni.ja with LZMA2 #26

@the-r3dacted

Description

@the-r3dacted

I'm probably going to ship Brotli compressed omni.ja files next release, which decreases the installed size by a substantial 50MB for 115 ESR, but this increases the installer/.7z size a little bit. (4.4MB for 115 ESR)

The installer and the .7z file are compressed with LZMA2 which causes this discrepancy. However LZMA2 generally gives better compression and is more universal so that's why it's used for those.

Which means if I were to also use LZMA2 for the omni.ja files, this would cause a negligible installer/.7z file size increase (0.2MB for 115 ESR) and be even smaller than the Brotli compressed counterpart installed on disk. (A further 5MB or 55MB smaller than no compression for 115 ESR. This actually is exactly a 1/4th size reduction for the browser (219MB extracted))

There looks to be some capability of using LZMA2 in Firefox, the installer uses it, and xz is included in the source code. However I'm not sure how to use it here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions