Change 20070827-maxcarlson-0 by [EMAIL PROTECTED] on 2007-08-27 16:33:13 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Inline setAttribute

Bugs Fixed:
LPP-4513 'Compiler Improvements to address performance'

Technical Reviewer: ptw, max
QA Reviewer: henry
Doc Reviewer: (pending)

Details:
    CodeGenerator.java, JavascriptGenerator.java - Inline calls to
    setAttribute() when called as the script compiler, unless #pragma
"passThrough=true". UUID generator uses integer counter to cut down on
    size.

    LzContextMenu.js, LzTextSprite.js, LzInputTextSprite.js,
    embednew.js, iframemanager.js - Call Lz.__setAttr() instead of
    div.setAttribute(...).  Add __setAttr() method to be used so
    div.setAttribute() isn't inlined.

Tests:
    All demos run as before (but faster in swf and dhtml).  smokecheck
    also runs and passes now.
    http://localhost:8080/wafflecone/my-apps/copy-of-hello.lzx is 62k
    compressed in dhtml (was 60k), 92k compressed in swf7 (was 89k) and
93k compressed in swf8 (was 90k). This change will benefit animators and alignment constraints now. We can always manually inline/ optimize to
    bring the size down later.  I recommend taking this for now.

Files:
M      WEB-INF/lps/lfc/kernel/dhtml/LzContextMenu.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js
M      WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
M      WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java
M      lps/includes/source/embednew.js
M      lps/includes/source/iframemanager.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070827- maxcarlson-0.tar

Reply via email to