Effective Caching w/ GitHub Actions #4585
Replies: 1 comment
-
Okay, just leaving an update that this isn't realm truly to blame, a few other packages are heavy. Realm just pushed things over the edge and caused the investigation with the largest single cache size at 412M. Above was pictured It caches This matches with our installation as we bounced around a few major versions aiming for something with Hermes compatibility.
So our global cache ends up looking like:
A large jump for sure, but I'm going to trade having a cache for 99% of packages and explicitly dropping a file cache for the heavy packages. With something like
Prior to cache save. So this makes our cache file quite small and restores very quick. We ingest some IO with a network download, but until the performance and ability for the cache system to be smart enough to not cache "older" packages. I'm afraid I'll make that trade. I am however curious how the global cache for realm6 was 64M and realm10 was 412M. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Our build time went up 4-6 minutes after installing realm for React Native and I was quite confused, because the package was only 16mb, which is higher but shouldn't explain a jump of 2.1 GB into cache and large minute jump. Doing something like this:
That then takes a bit of time to restore.
Which takes anywhere from 4 to 6 minutes, so I don't think GitHub Actions like us much anymore. I ended up digging into it and found some archive files in
node_modules/realm/vendor/realm-ios/*.a
files that I think appear during compilation.I'm wondering from the source itself what is the recommendation here. Do I win out restoring a cache of large size or do you think the compilation overhead of recompiling wins and I should find a way to ignore these files from the cache created?
Beta Was this translation helpful? Give feedback.
All reactions