You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our test case one of the steps involves caching a docker image into the file and restoring it later.
Problem is, if we cache a tar file, the script will compress it which is a time-consuming operation which doesn't really bring a big value.
Default cache command, provided by semaphore:
semaphore@semaphore-vm:~/app_cache_dir$ time tar czPf /tmp/app_image_cache-cac3c3500fc4aa1a4f8dece0edb86e57ad36510e.tar app-image.tar
real 0m34.813s
user 0m33.855s
sys 0m1.230s
without compression:
semaphore@semaphore-vm:~/app_cache_dir$ time tar cPf /tmp/app_image_cache-cac3c3500fc4aa1a4f8dece0edb86e57ad36510e.2.tar app-image.tar
real 0m0.708s
user 0m0.049s
sys 0m0.655s
The possible solution would be to provide a flag option to cache, like: cache store --compress=false my_file_or_directory which would add or remove z option from tar command.
The text was updated successfully, but these errors were encountered:
koleksiuk
changed the title
Cache slow if packing tar files
Cache is slow if tar file is stored
Aug 18, 2020
In our test case one of the steps involves caching a docker image into the file and restoring it later.
Problem is, if we cache a tar file, the script will compress it which is a time-consuming operation which doesn't really bring a big value.
Default cache command, provided by semaphore:
without compression:
The possible solution would be to provide a flag option to
cache
, like:cache store --compress=false my_file_or_directory
which would add or removez
option from tar command.The text was updated successfully, but these errors were encountered: