Replies: 2 comments 5 replies
-
Perhaps we could have chosen a different format, but development cycles were better spent elsewhere at the time. Perhaps at some point the cache format will become the bottleneck and it'll be revisited, but even now it's still not a priority for the core team compared to other stuff (which isn't to say we wouldn't be interested to see other cache formats be implemented by other people, just that it's a significant amount of work and we can't guarantee it will be merged if the improvements end up too small for the complexity cost). |
Beta Was this translation helpful? Give feedback.
-
@Glandos did you run any benchmarks after training a zstd dictionary? I wonder how much more significant the improvement could be with a generally-applicable domain-specific dictionary like brotli. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I just open a simple discussion because I was unable to find why ZIP format was selected. When Yarn2 was made public, zstandard was quite mature, and much more performant than ZIP. Here is a small benchmark on one of my project dependency
So the output is smaller than the original ZIP file, and it compressed 3 times faster.
For decompression, I included the file extraction:
The same result are achieved.
Yarn could greatly benefit of such performance, but why ZIP was selected? Because it can compress and index multiple files?
Beta Was this translation helpful? Give feedback.
All reactions