Slow macOS dmg unpack due to bzip2; recommend lzfse format
Environment/Versions
- GIMP version: 2.99.14
- Package: official dmg
- Operating System: macOS
Description of the bug
The bzip2-dmg "UDZO" format is now deprecated. More importantly though, it is causing a very long time-to-install on relatively underpowered Mac devices, such as the 12" retina with a core m3 CPU. It is time to switch to the lzfse compression "ULFO" format supported since macOS 10.11. No compatibility issue would occur as the current minimum is already macOS 10.12.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Download the thing.
- Go to terminal, do
exec bash
, thencd
to where it is. - Run:
unpack() { # Unpacks a DMG file local dir=$(hdiutil attach -mountrandom /tmp "$@" | tail -n 1 | cut -f 3) cp -a "$dir"/* . hdiutil detach "$dir" } time unpack gimp-2.99.14-1-x86_64.dmg
Expected result: Done in 1 minute
Actual result: 6m15.443s
Additional information
See cognate LibreOffice bug at https://bugs.documentfoundation.org/show_bug.cgi?id=151341. There's some format conversion for testing how LZFSE would fare in size and speed there. Might do it too here.
See manpage at https://www.unix.com/man-page/mojave/1/hdiutil/.
Edited by Mingye Wang