Hi Kal,

From: "Kahlil Hodgson" <kahlil.hodg...@dealmax.com.au>
Good Morning Octavian

On 10/30/2009 12:12 AM, Octavian Râşniţă wrote:
I've seen that by just adding the attribute "FormConfig" in a subroutine
declaration in a Catalyst controller that subclasses
Catalyst::Controller::HTML::FormFu decreases the response speed from 36
requests to only 5 requests per second, without changing anything else.

I had a similar experience which was making FormFu impractical.

Is it possible to cache somehow the config files or do something else to
improve the speed?

I've implemented a simple (naive) single-process cache in
Catalyst::Controller::HTM::FormFu::Action::FormConfig
(file attached) and get a noticeable speed up, however, there are issues
with this approach.  As you can see from the comments in the code, I was
unable to get a shared cache to work, and caching code references seems
to be impossible.  I'm also thinking of applying this
approach to (applicable instances of) FormMethod as well.

Cheers!

Kal



Thank you for the code. I will try to do some tests because this big delay is a big issue.

Octavian


_______________________________________________
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