[Laszlo-dev] For Review: Change 20070810-maxcarlson-U Summary: More LFC optimization

Max Carlson max at openlaszlo.org
Fri Aug 10 14:08:22 PDT 2007


Change 20070810-maxcarlson-U by maxcarlson at Plastik.local on  
2007-08-10 13:58:38 PDT
     in /Users/maxcarlson/openlaszlo/wafflecone
     for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: More LFC optimization

New Features:

Bugs Fixed: LPP-4414 - Improve startup performance (partial)

Technical Reviewer: promanik
QA Reviewer: ben
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: LzNode.lzs - Move test for __LZstyleConstraints outside  
__LZapplyStyleConstraints() to save method calls.  Avoid checking  
dep.length twice in applyConstraint().

LzCSSStyle.js - Inline _compoundSelectorApplies() call in  
getPropertyValueFor().  Simplify/rename _selectorApplies()  
_compoundSelectorApplies() as it now only applies to compound selectors.

LzSprite.as - Avoid sending resource load events for empty resources.

Tests: http://localhost:8080/wafflecone/...silver/main.lzx? 
lzr=dhtml&lzt=html shows ~37152 fewer total method calls (from 206356  
to 169204).  At least 44288 calls to _compoundSelectorApplies() have  
been eliminated.  http://localhost:8080/wafflecone/test/smoke/ 
smokecheck.lzx passes.

Files:
M      WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M      WEB-INF/lps/lfc/services/LzCSSStyle.js
M      WEB-INF/lps/lfc/core/LzNode.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070810- 
maxcarlson-U.tar


More information about the Laszlo-dev mailing list