Using Pear's quickform seemed like a good idea... but I have a very long form, and for it to generate the form, load all rules, and generate the html anew every time takes an unacceptable .7 seconds on my server.
.5 of those seconds belong to actually processing the $form->addElemnnt() and $form->addRule() calls to define the form.. these stay the same each load
Since the form should not change very often, I would like to somehow store the finished object and skip the dynamic 'building' of the form each page load. Enter Serialize().
Problem: when unserialize is called you need the class description pre-loaded. QuickForm is composed of many sub-object each of a different class like HtmlInput and HtmlSelect and HtmlTextarea.... but Pear::Quickform only loads these sub-ojects as you have a need for them, so they are not availble by default for the unserialize
I do not want to simply go through and include() every singel possible sub object the form may contain... especially since these are internal to the quickform build, and aren not meant to be accessed directly by the programmer
what others options do I have? is there an easier way around the must-pre-load of serialize()?