Tips for keeping Perl memory usage low

前端 未结 6 1882
猫巷女王i
猫巷女王i 2020-12-04 06:29

What are some good tips for keeping memory usage low in a Perl script? I am interested in learning how to keep my memory footprint as low as possible for systems depending o

6条回答
  •  悲&欢浪女
    2020-12-04 06:53

    Try to use more caching. Logic for implementing caching routine is always the same so you can automate using CPAN module Memoize. Use Devel::Size to check the actual memory footprint.

提交回复
热议问题