-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Support .tar.xz for ArchiveExtractor to make download more fast #8776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Now ```tar.xz``` format is widely used, and the official arduino IDE download URL also shows that arduino uses ```tar.xz``` format. (https://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz). As we all know, the tar.xz format has the optimal size compared to tar, tar.gz, tar.bz2, and zip. (https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-comparison/) Therefore, it is very unreasonable not to support tar.xz. Supporting this format can save almost half of the bandwidth resources and download time when compressing the gcc toolchain, making users more comfortable. Signed-off-by: Huang Rui <[email protected]>
|
I think that adding tar.xz support can be a good idea; the only problem is that it introduces a minimum IDE version for the cores using it, and we are currently missing a flag to tell the user about this. |
|
Is there any way we could have a fallback URL? |
|
Some possible suggestion: Another way is to have the server statically provide two versions of json, one for the new version and one for the old version. This gives the user the possibility to choose. And after a certain life cycle (such as the life cycle of a mainstream operating system), fully support tar.xz. Let user choose. |
|
The fallback/alternative url could work; I'm a bit scared in replacing json entries on the fly but it could work if handled correctly. Anyway, if we choose this way, we should apply all the relevant patches to https://github.com/arduino/arduino-cli first of all |
|
IMHO we should just add support for .xz without changing any existing json. |
|
Is there any update? |
|
@cmaglie @facchinm @sandeepmistry Hello, is there any plan to merge this branch? |
Now
tar.xzformat is widely used, and the official arduinoIDE download URL also shows that arduino uses
tar.xzformat.(https://downloads.arduino.cc/arduino-1.8.9-linux64.tar.xz).
As we all know, the tar.xz format has the optimal size compared to tar,
tar.gz, tar.bz2, and zip.
(https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-comparison/)
Therefore, it is very unreasonable not to support tar.xz.
Supporting this format can save almost half of the bandwidth resources
and download time when compressing the gcc toolchain,
making users more comfortable.