Calculate the SHA-256 of big files without using too much memory

Basically i have to calculate the SHA-256 hashes of several files and when doing so my memory usage goes up to 800 mb.
My problem is explained in more detail in this stack overflow post. As you can see there i have tryed a couple of things but i cant get rid of the high memory usage.
Answered by DTS Engineer in 661971022
Seems like you’ve already found your answer, namely to use an autorelease pool.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer
Seems like you’ve already found your answer, namely to use an autorelease pool.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Calculate the SHA-256 of big files without using too much memory
 
 
Q