in reply to Reduce RAM required

Others have made good suggestions regarding algorithm and scope, but for a more complex program you could use Devel::MAT to identify which structures are using the most memory.

See also https://tech.binary.com/tracing-perl-memory-leaks-with-devel-mat/ and https://tech.binary.com/tracing-perl-memory-leaks-with-devel-mat-part-2/

Replies are listed 'Best First'.
Re^2: Reduce RAM required
by onlyIDleft (Scribe) on Jan 09, 2019 at 16:01 UTC

    Thank you! I need to learn how to trace and prevent memory leaks, so those links will be useful in the future.