简体   繁体   中英

HTML::FormHandler Form really slow

I am using HTML::FormHandler for a web app I'm creating. The forms work fine, the only issue is that just loading the form can cause the page 2-3 seconds to load. I know HTML::FormHandler uses Moose , and this StackOverflow has lead me to believe that Moose is the culprit. My web app is not using catalyst , so there isn't just the initial cost of loading the form and moose; it loads again every time a page is loaded. Is there anyway to reasonably use HTML::FormHandler in a non-catalyst web app? Or should I just give up and look for another form module? Thanks!

This is the sort of issue that FastCGI was first introduced to solve: fundamentally a thin wrapper around a CGI program that makes it a persistent process.

CGI::Fast is as good a place to start as any. If you're already using CGI.pm you should find the conversion pretty straightforward - certainly easier than converting the entire shebang to Catalyst or some other framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM