2008年11月24日星期一

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

-- Yi Tang <ytang@mbira.com> wrote
(on Monday, 24 November 2008, 05:22 PM -0600):
> anybody noticed this method is very very slow? Adding 100 options took
> 0.2 seconds alone, while everything else on the page took less than that
> to generate.

What version of ZF are you using? I made some optimizations for 1.7.0
that greatly sped this up.

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.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: