Long-lived programs or ones processing large volumes of data can improve their memory footprint and runtime with a few simple techniques for managing runtime allocation.
This talk looks at Perl's memory management of scalars, arrays, and hashes with a variety of techniques for controlling memory use and avoiding bloat.