Change 20100420-maxcarlson-4 by maxcarl...@friendly on 2010-04-20 09:22:40 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Optimize text size measurement
Bugs Fixed: LPP-6892 - Generated File Sizes baseline complete; Performance
Tuning ongoing (partial)
Technical Reviewer: ptw
QA Reviewer: hminsky
Details: LzSprite - Uncommenting the cache statistics code (csshit/miss) showed
a lot of CSS values that were only updated once. Only use applyCSS() where
cache hits were shown.
LzTextSprite - Only use applyCSS() where cache hits were shown. Use cached CSS
values to assemble text measurement CSS string.
LzInputTextSprite - Only use applyCSS() where cache hits were shown. Ensure
cached value for _whiteSpace is properly updated.
LzText - Prevent unneeded updates to setMaxLength().
Tests: test/lztest/lztest-textheight.lzx runs as before in DHTML, as does
amazon, lzpix, component sampler. Firebug shows a fairly substantial
improvement to startup time - text measurement is now fairly even with
everything else as far as CPU time goes...
Files:
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js
M WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
M WEB-INF/lps/lfc/views/LzText.lzs
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100420-maxcarlson-4.tar