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

Style engine : style matching allocates a lot of memory even if everything is in cache

    XMLWordPrintableJSON

Details

    Description

      StyleProtoChain#getTypeHierarchy is called often and is responsible for a lot of unneeded memory allocations even if the type hierarchy is cached.

      This patch has 2 parts :

      • (1) : exception handling reworking in order to avoid the closure/activation creation by the try/catch
      • (2) : replace the use of a flash proxy with a custom class : It seems that the proxy was only used as an array.

      Attachments

        1. StyleProtoChain.as.patch
          4 kB
          Arnaud Le Bec
        2. gettypehierarchy-example-4.png
          46 kB
          Benoit Wiart
        3. gettypehierarchy-example-3.png
          207 kB
          Benoit Wiart
        4. gettypehierarchy-example-2.png
          65 kB
          Benoit Wiart
        5. gettypehierarchy-example-1.png
          41 kB
          Benoit Wiart
        6. 0001-gettypehierarchy-optimizations.patch
          6 kB
          Benoit Wiart

        Activity

          People

            Unassigned Unassigned
            benoitw Benoit Wiart
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: