flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Wiart (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33893) CSSStyleDeclaration is inefficient during style matching
Date Mon, 11 Nov 2013 21:40:17 GMT
Benoit Wiart created FLEX-33893:

             Summary: CSSStyleDeclaration is inefficient during style matching
                 Key: FLEX-33893
                 URL: https://issues.apache.org/jira/browse/FLEX-33893
             Project: Apache Flex
          Issue Type: Improvement
          Components: Mobile: Performance, Performance: Framework, Styles
    Affects Versions: Apache Flex 4.11.0
         Environment: desktop mobile
            Reporter: Benoit Wiart

When no factory (or defaultFactory) is provided a new function is created when matching styles
(addFactoryAndOverrideStylesToProtoChain, addStyleToProtoChain, applyFilter).
This is a major source of unneeded memory allocations (== GC)

The patch re-use a single function as the prototype is always reseted 
This should be reviewed by an actionscript ninja ;-)

This message was sent by Atlassian JIRA

View raw message