0

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!

Community
  • 1
  • 1
srchulo
  • 5,143
  • 4
  • 43
  • 72

1 Answers1

1

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.

RET
  • 9,100
  • 1
  • 28
  • 33