Files
ubicloud/rhizome/host/spec/boot_image_spec.rb
Hadi Moshayedi 4920647f4c Make sha256 sum calculation faster.
1. Use `tee` to calculate SHA-256 checksum incrementally during the
download process.
2. Switch to `openssl dgst -sha256` for checksum calculation. This
change significantly reduces the processing time for large files. For
example, on my system, a 6 GB file's checksum calculation time decreased
from 15 seconds with the old method to 3.7 seconds with the new method.
2024-05-17 15:21:56 -07:00

4.4 KiB