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

s:datagrid cacheAsBitmap caches an itemRenderer for every item in the dataProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.11.0, Apache Flex 4.12.0
    • Apache Flex 4.14.0
    • Spark: DataGrid
    • Windows 7, FB 4.7, ie10

    Description

      setting cacheAsBitmap to true on a spark dataGrid allocates a lot of memory, noticeably when the dataProvider is long.

      My guess is it's allocating enough memory to cache an itemRenderer for each item in the dataprovider, whether it's showing or not.

      Steps to reproduce:
      (fxp attached)
      1. create a spark dataGrid which has a dataProvider of length 1000
      2. set cacheAsBitmap to true
      3. run and profile memory usage

      a dataprovider of length 10,000 shows no significant spike in memory, using sdk 4.6.

      in 4.11/12, 10,000 items can cause !GCOD

      Attachments

        1. ItemRendererCachingBug.fxp
          20 kB
          Jeff Spicer
        2. flex-34260-fdk4.13.png
          163 kB
          Vitaliy Parfenov
        3. flex-34260-fdk_mod.png
          102 kB
          Vitaliy Parfenov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jetspice Jeff Spicer
              Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: