On Sun, Feb 14, 2016 at 9:26 AM, Paulo da Silva <p_s_d_a_s_i_l_v_a...@netcabo.pt> wrote: > I meant eating! :-)
Heh, "heating" works too - the more you use memory, the more it heats up :) I'm assuming this is inside "class File:" and you have class members for your constants like header size? There's no context for the name "File" otherwise. What happens if, after hashing each file (and returning from this function), you call gc.collect()? If that reduces your RAM usage, you have reference cycles somewhere. ChrisA -- https://mail.python.org/mailman/listinfo/python-list