in reply to Tokenising a 10MB file trashes a 2GB machine
Be aware that using Devel::Size::total_size() itself can consume prodigous amounts of memory.
In the process of examining the structure of the anonymous array you are creating, it builds a 'tracking hash' to allow it to avoid counting duplicate references to data or internal magic etc. Whether that's the cause of your memory consumption here is not clear, but it would be worth eliminating Devel::Size from the equation.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tokenising a 10MB file trashes a 2GB machine
by PetaMem (Priest) on Jul 16, 2008 at 09:23 UTC |