question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cache restoration is orders of magnitude slower on Windows compared to Linux.

See original GitHub issue

We 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: image

Windows: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Adnncommented, Mar 7, 2022

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?)

1reaction
mattjohnsonpintcommented, May 9, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found