Hi Mattia,
Mattia Barbon wrote:
the list of constants and event names available for exporting (stored in
Wx::Wx_Exp) wastes about 1MB of RAM (measured using heap(1), Snow
Leopard, 64bit Perl); for a 32bit Perl the amount of wasted memory is
about 800KB.
The simplest way to reduce memory occupation is to move the list of
exported constants to C/XS; this should not increase the compiled code
size, since the wxPerl so/dll/dylib already contains the constant names.
In order to do this, I need to change the way constants are exported,
which in turn means partially or totally replacing Exporter. This
change will benefit all wxPerl users, and in particular those using
threads; do you think it is worth implementing?
I think so. With a couple of threads, that's already 5MB. While it's not
enough to make a difference all by itself, I know that Padre people have
been spending quite some time on smaller savings.
Cheers,
Steffen