I've made a couple of changes to improve memory usage.

I've gotten rid of the dependency on Class::Accessor::Chained::Fast,
which saves about 0.5 MB RAM.

I've also changed Catalyst::Controller::HTML::FormFu to not load
HTML::FormFu::Preload.
This means each hit which loads a previously unused
element/constraint/etc. will have to require() the files.
I think the performance hit isn't noticeable at all, and for the forms
I typically use, I see around a 4 MB RAM saving for each perl
interpreter.
You can, of course, use() HTML::FormFu::Preload anywhere in your code
if you want to still load everything up-front.

Unfortunately, several other things I tried didn't give enough of an
improvement to warrant making the changes (which generally made the
code less clear).

Every unique package (namespace) in a perl program takes up a certain
amount of RAM, and there's very little I can do about that as long as
the elements / constraints / etc. are module-based.

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to