You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/12/27 01:21:50 UTC

[jira] [Resolved] (FLEX-33902) ResourceManager#getInstance should not allocate unneeded memory

     [ https://issues.apache.org/jira/browse/FLEX-33902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean resolved FLEX-33902.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.12.0

Checked into develop branch. Resource tests pass. 

> ResourceManager#getInstance should not allocate unneeded memory
> ---------------------------------------------------------------
>
>                 Key: FLEX-33902
>                 URL: https://issues.apache.org/jira/browse/FLEX-33902
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Performance: Framework
>    Affects Versions: Apache Flex 4.11.0
>         Environment: all
>            Reporter: Benoit Wiart
>            Assignee: Justin Mclean
>            Priority: Minor
>              Labels: memory, performance
>             Fix For: Apache Flex 4.12.0
>
>         Attachments: 0001-ResourceManager-closure.patch, resourmanager-getinstance.png
>
>
> ResourceManager#getInstance allocates unneeded memory each time it's called.
> it's a tiny allocation but with a lot of calls
> it comes from the closure in the catch, the compiler is not smart enought ; the closure is created even if this part of the code is not executed



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)