Timeout while restoring cache

caching
#1

I observe windows builds to time out while restoring the cache, for example here. The cache is a bit less than 500MB.
At the same time, I see caching working fine within about 30s with much larger caches here on linux machines…

Is this a general problem with IO on windows? (I had the impression that they are somewhat slower in general)

#2

Reading through several other topics, it seems that poor performance seems to be a general problem with the Windows VMs.
Is there any hope that this will improve? Or should be try to workaround this in some way?

#3

I checked this again and apparently the situation has not changed a lot. Not it even fails while packing the cache
Is there anything I can do about that? Are there any activities to improve IO performance?

#4

This PR should improve performance.