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
When running your program like this, go's RAM consumption balloons out of
control:
mkdir -p temp-zero
cat /dev/zero | head -c 4000000000 > temp-zero/zero.bin
go run ~/Download/unpack/file/rshasum/sum.go -a 512 temp-zero
Seems like you are reading the whole files into RAM . Note that sha checksums
can be calculated incrementally by using fixed size segments. This is the
approach taken by this quick bash script I wrote:
Hi!
When running your program like this, go's RAM consumption balloons out of
control:
Seems like you are reading the whole files into RAM . Note that sha checksums
can be calculated incrementally by using fixed size segments. This is the
approach taken by this quick bash script I wrote:
Please fix it.
The text was updated successfully, but these errors were encountered: