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

Max Carlson max at openlaszlo.org
Wed Aug 1 12:31:43 PDT 2007


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