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.
4.4 KiB
4.4 KiB