[Laszlo-dev] For Review: Change 20070801-maxcarlson-k Summary: Inline LzCSSStyle._selectorApplies() testing and first level of recursion

P T Withington ptw at openlaszlo.org
Wed Aug 1 13:01:58 PDT 2007


Yes this is ugly.  Are you _clearly_marking_ the code that you copy/ 
pasted, so that the next person to touch this doesn't screw it up by  
changing only one copy?

I'd like to know what % wall clock speed up this gives to assuage the  
ugliness.

On 2007-08-01, at 15:30 EDT, Max Carlson wrote:

> Change 20070801-maxcarlson-k by maxcarlson at plastik on 2007-08-01  
> 12:24:00 PDT
>     in /Users/maxcarlson/openlaszlo/wafflecone
>     for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone
>
> Summary: Inline LzCSSStyle._selectorApplies() testing and first  
> level of recursion
>
> New Features:
>
> Bugs Fixed: LPP-4414 - Improve startup performance (partial)
>
> Technical Reviewer: promanik
> QA Reviewer: ben
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> Details: Do early tests to short-circuit calls to _selectorApplies 
> ().  Change structure of _selectorApplies() to set a result  
> variable and break rather than retunring immediately.  Inline first  
> level of recursion (ugly, but it gets the most results).
>
>
> Tests: Silver main.lzx?lzr=dhtml&lzt=html shows a total of 56350  
> fewer function calls in firebug (from 307750 to 251400).  Calls to  
> _selectorApplies() have been reduced from 125068 to 66294 calls.
>
> Files:
> M      WEB-INF/lps/lfc/services/LzCSSStyle.js
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070801- 
> maxcarlson-k.tar



More information about the Laszlo-dev mailing list