Open jaredmauch opened 1 month ago
Looking a bit further as well, it does seem like even some of the included files are not executable as well:
username@usernameiMac QGIS.app % ls -ld Contents/Resources/python/site-packages/cmake/data/CMake.app/Contents/MacOS/CMake
-rw-r--r--@ 1 username admin 23743840 Sep 14 2021 Contents/Resources/python/site-packages/cmake/data/CMake.app/Contents/MacOS/CMake
% file Contents/Resources/python/site-packages/cmake/data/CMake.app/Contents/MacOS/CMake
Contents/Resources/python/site-packages/cmake/data/CMake.app/Contents/MacOS/CMake: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
Contents/Resources/python/site-packages/cmake/data/CMake.app/Contents/MacOS/CMake (for architecture x86_64): Mach-O 64-bit executable x86_64
Contents/Resources/python/site-packages/cmake/data/CMake.app/Contents/MacOS/CMake (for architecture arm64): Mach-O 64-bit executable arm64
It almost seems like it's left over from the build environment?
Feature description
When installing QGIS the file on macOS takes awhile to copy, even with fast storage (eg: nvme) - A fair amount of this time is copying small files which result in many i/o operations to the filesystem.
I would like to suggest that the data be moved either into a blob, eg: https://www.sqlite.org/fasterthanfs.html or that some of the files might be removed.
For example, I believe it may not be necessary to include many of these files, or they could be archived in a way that it doesn't take as much disk i/o to copy the app from the disk image to the storage.
Additional context
I monitor the time it takes to copy by running
iostat -d 1
in an alternative window. Extract from theiostat
man page for macos:This shows a high number of tps (open/read/close) of files and a reduced I/O rate of the attached storage during the copy operation from the disk image (disk2) to the internal storage (disk0)