Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Florencia (she/her) ( florencia@lemmy.blahaj.zone )  to Linux@lemmy.mlEnglish · 2 years ago

Announcing Faster, Lighter Firefox Downloads for Linux with .tar.xz Packaging!

blog.nightly.mozilla.org

external-link
message-square
16
link
fedilink
86
external-link

Announcing Faster, Lighter Firefox Downloads for Linux with .tar.xz Packaging!

blog.nightly.mozilla.org

Florencia (she/her) ( florencia@lemmy.blahaj.zone )  to Linux@lemmy.mlEnglish · 2 years ago
message-square
16
link
fedilink
Announcing Faster, Lighter Firefox Downloads for Linux with .tar.xz Packaging! – Firefox Nightly News
blog.nightly.mozilla.org
external-link
We’re excited to announce an improvement for our Linux users that enhances both performance and compatibility with various Linux distributions. Switching to .tar.xz Packaging for Linux Builds In our ongoing ...
alert-triangle
You must log in or register to comment.
  • Lucy :3 ( 30p87@feddit.org ) 
    link
    fedilink
    arrow-up
    24
    ·
    2 years ago

    Who’s not using a package manager? Except for LFS, for which you should compile it yourself.

    • thingsiplay ( thingsiplay@beehaw.org ) 
      link
      fedilink
      arrow-up
      16
      ·
      2 years ago

      Most normal users do not do this. But there might be special packages with special setups, like scripts downloading and installing from Mozillas download links. Or package creators themselves might use it. Or maybe you are a developer, in which case such direct downloads would be helpful for testing and comparing stuff. I also assume most people do not care or notice any difference with this change. Still its an improvement without much drawback and thats always good, even if its only a few people benefiting of it.

      • Ephera ( Ephera@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        Yeah, particularly for downloading Firefox Nightly, these self-contained archives are extremely helpful.

      • Lucy :3 ( 30p87@feddit.org ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        And sometimes -bin AUR packages (and of course some normal packages, behind the scenes) use those packages as base. Even though I prefer normal or -git packages.

    • beeng ( beeng@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      NixOS packaging pipeline will benefit from this

    • GenderNeutralBro ( GenderNeutralBro@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 years ago

      I don’t. I have installed Firefox manually for many years across several distros now, albeit for different reasons. For example:

      • Debian only has Firefox ESR in the Bookworm repo. I want the latest mainline version.

      • Bazzite only offers it via Flatpak, which breaks functionality I need such as native messaging.

      I see no problem installing it manually. It keeps itself updated and has caused me zero problems.

    • Scrollone ( Scrollone@feddit.it ) 
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      I highly suggests all Ubuntu users to use the vanilla Firefox version downloaded from Mozilla. It’s way better because it’s not a Snap package.

  • kbal ( kbal@fedia.io ) 
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

    The .tar.xz format decompresses more than twice as fast as .tar.bz2, allowing you to get up and running in no time

    $ time tar xjf firefox-134.0b3.tar.bz2 
    
    real    0m9.045s
    user    0m8.839s
    sys     0m0.450s
    
    $ time tar xJf firefox-135.0a1.en-US.linux-x86_64.tar.xz                                                
    
    real    0m4.903s
    user    0m4.677s
    sys     0m0.510s
    

    Nice! Presumably it’d be twice as fast if disk was infinitely fast or something. Unfortunately by testing this I’ve already used up a hundred times more time than I’ll ever save as a result of it.

    • thingsiplay ( thingsiplay@beehaw.org ) 
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      I am curious too. You tested two different versions, one beta and the other current nightly (different content). It’s okay for a quick test, but you can actually have a much closer test. Both nightly and only one day difference:

      • bz2: https://archive.mozilla.org/pub/firefox/nightly/2024/11/2024-11-26-20-51-18-mozilla-central/firefox-135.0a1.en-US.linux-x86_64.tar.bz2
      • xz: https://archive.mozilla.org/pub/firefox/nightly/2024/11/2024-11-27-09-56-17-mozilla-central/firefox-135.0a1.en-US.linux-x86_64.tar.xz

      I run this quick test multiple times and on average these are typical results (don’t forget to delete the unpacked folder between each runs):

      $ time tar xjf firefox-135.0a1.en-US.linux-x86_64.tar.bz2
      
      real    0m5,784s
      user    0m5,700s
      sys     0m0,371s
      
      $ time tar xJf firefox-135.0a1.en-US.linux-x86_64.tar.xz
      
      real    0m1,699s
      user    0m1,621s
      sys     0m0,315s
      
      • kbal ( kbal@fedia.io ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        On my system that consistently gets results around 10s and 5s so the difference is sort of interesting. Mine’s a Ryzen 3600, maybe newer CPU features are of substantial benefit to xz.

  • boredsquirrel (he) ( boredsquirrel@slrpnk.net ) 
    link
    fedilink
    arrow-up
    14
    ·
    2 years ago

    Fixing their damn sandbox would be something truly useful.

    Implementing a fork server so Flatpak AND Android Firefox can stop being fucking insecure for no reason.

  • theshatterstone54 ( theshatterstone54@feddit.uk ) 
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    Yes, use the format that was almost backdoored a few months ago! I’m sure it has a very strong development team behind it! /s

  • Ephera ( Ephera@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    Interesting, I always assumed they would be using a pretty optimal algorithm with their .tar.bz2 format, because they obviously benefit quite a bit from smaller downloads. Good to know that .tar.xz is actually better.

  • DrDystopia ( DrDystopia@lemy.lol ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    🤷

  • john89 ( john89@lemmy.ca ) BannedBanned
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    What? More compression?

    Here I am wondering why in 2024 we don’t have the option to automatically decompress downloaded files like Apple users supposedly can.

    Ahh well, I guess that’s why these designers don’t work for apple. They’re not good enough.

  • boredsquirrel (he) ( boredsquirrel@slrpnk.net ) 
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Btw how are they the only ones hopping on to XZ?? Like, everyone is switching to zstd currently.

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 5.32K users / 6 months
  • 1.31K local subscribers
  • 68.1K subscribers
  • 8.11K Posts
  • 108K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • nooter692 ( nooter692@lemmy.ml ) 
  • MarcellusDrum ( MarcellusDrum@lemmy.ml ) 
  • Arthur Besse ( cypherpunks@lemmy.ml ) 
  • Cyclohexane ( cyclohexane@lemmy.ml ) 
  • d3Xt3r ( d3Xt3r@lemmy.nz ) deleted by creator
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code