Subject: | takes too much disk space once installed |
Class::MethodMaker takes too much disk space (about 22 MB) because of
many almost-identical files and almost-identical code in some modules
files, such as Class/MethodMaker/hash.pm (4 MB). This may be a problem
in particular on embedded devices (and old machines), which have limited
RAM and disk space. The code could probably be optimized, even though
this is not easy.
Martyn J. Pearce said on
http://thread.gmane.org/gmane.comp.lang.perl.modules.class-methodmaker/14/focus=15
[...] It's not your fault, and it's difficult to fix. Essentially,
it's templated code; the source is the template, hence the small size,
and it's expanded on install. It is undesirable I grant, but it's too
keep compilation time down, and it's difficult to do on demand because
the client is typically running as different user to the installer.