2008年11月25日星期二

Re: [fw-mvc] Zend_Form_Element_Multi addMultiOptions() performance

Matthew,

I'm using 1.7.0.  It's taking .2 seconds to add 100 options.  It's really poor performance for simply adding options to a form element.  It literally doubles my page generation time, the rest of the page has a ton of logic behind it and it doesn't take as long as this one zend form element.

yi

Matthew Weier O'Phinney wrote:
-- Marco Pracucci <pracucci@gmail.com> wrote (on Tuesday, 25 November 2008, 09:18 AM +0100):   
BTW, 0.2s is not terrible. I had a user report they were adding 250 elements to a form, and it was taking *8s* to generate. After I made   the above optimizations, we were able to cut that down to under 1s.       
I don't agree with you. I know you've done a great improvement in the   latest version, however I believe that 0.2s spent creating a form   element is too much.     
 I misread you -- I thought you were referring to the complete form. 0.2s is definitely a bit long for a single element. How many options are you adding to the element?  Also, have you tested with 1.7.0? You still haven't indicated this information...    

没有评论: