Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33902

ResourceManager#getInstance should not allocate unneeded memory

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        1. resourmanager-getinstance.png
          23 kB
          Benoit Wiart
        2. 0001-ResourceManager-closure.patch
          0.9 kB
          Benoit Wiart

        Activity

          People

            jmclean Justin Mclean
            benoitw Benoit Wiart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: