Cache restoration is orders of magnitude slower on Windows compared to Linux.
See original GitHub issueWe are using this action to cache Conan packages.
Our current cached is ~300 MB on both Linux (ubuntu-20.04
) and Windows (windows-2019
).
Sadly, where the cache step routinely takes ~10 seconds on Linux, it oftentimes takes ~5 minutes on Windows.
This makes iterations frustrating, as the rest of the workflow takes about 2 minutes to complete, we get a global x3 time penalty because of this.
As far as I can tell, the archive retrieval time is comparable, it really is the cache un-archiving which seems to take very long on Windows.
Our latest run below for illustration purposes.
Linux:
Windows:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Windows performance orders of magnitude lower than Linux's
Hello, everyone. I usually develop and work in Linux, but my users are mostly on Windows. So, I tried my code on 3...
Read more >Why does linux seem to be an order of magnitude faster than ...
Sure, linux kernel might be faster at some things, but none of that is the bottleneck for the 99.999% of humanity. Why windows...
Read more >How do I get Windows to go as fast as Linux for compiling C++?
The order of magnitude suggests a lot of the operations go to disk under Windows whereas they're handled in memory under Linux, i.e....
Read more >Memory part 2: CPU caches - LWN.net
Accessing those disks is orders of magnitude slower than even DRAM access. Fortunately it does not have to be an all-or-nothing decision.
Read more >Infinispan performance considerations and tuning guidelines
A Infinispan cluster of four server nodes with remote caches that allow ... Couple a Linux, Unix-like, or Microsoft Windows host system with ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your reponse!
(If the issue is with the specific un-archiving utility, maybe there is an alternative that the action could use on Windows to get better performances?)
Looks like this has been going on for awhile… See also #442 and #529. Hopefully @bishal-pdMSFT can make some improvements here? Maybe just provide an optional parameter to the action that would tell it to use
.zip
(or another format) instead of.tgz
on Windows? 7-Zip is pre-installed on the virtual environments.