Do you know what is causing the "name" parameter to be all lower case in the 
first place?

> The list 
> ["Show","Allow","Icon","ZIndex","Timer","Padding","VerticalBlock","Bac
> kground","Read",] has to be expanded to encompass all property names 
> that have a fooBarBaz format (Note you need only to put the "fooBar" 
> into the list, and the algorithm will find all FooBar* property names.

A linear search through this list is going to be slow. It would be better to 
create a lookup table from lowercase name to correctly capitalised name. You 
could do that dynamically by recording hits when they occur, at the 

                var setter = widget[n];
                
line. You would try this lookup table first before looking through the list.

If there's any way to avoid the list, ideally by having the "name" parameter in 
the correct capitalisation, then that would be even better as it doesn't 
require the list to be maintained (I know you have the backup search but it 
would be best to fix this once and for all).
 
> This small fix significantly speeds up things...

Any idea of by how much? Factor of 10?

Hugh


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to