Hi,
I am doing dome benchmark and I see the method
Zend_Form_Element::getAttribs is taking a lot of time. By looking of the
code it seems that the get_object_vars consum a lot of time.
And since there is 25 inst var that are protected/private it don't
return a lot of attribs.
By looking of all the subclasses I can see that most of the time there
is the helper that are redefine and a few attribut add.
So I propose to change the setAttrib so that we cache all the attribs
name and we can then retrive the attrib without using get_object_vars
and doing the big foreach loop.
What do you think?
Thanks
--
-- Mathieu Suen
--