You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Vitaliy Parfenov (JIRA)" <ji...@apache.org> on 2014/10/08 08:00:42 UTC

[jira] [Comment Edited] (FLEX-34260) s:datagrid cacheAsBitmap caches an itemRenderer for every item in the dataProvider

    [ https://issues.apache.org/jira/browse/FLEX-34260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163128#comment-14163128 ] 

Vitaliy Parfenov edited comment on FLEX-34260 at 10/8/14 6:00 AM:
------------------------------------------------------------------

this bug appears at Apache Flex 4.10.0 after merging new spark:DataGrid features to Apache Flex


was (Author: vsp):
this bug appears since Apache Flex 4.10.0 after merging new spark:DataGrid features to Apache Flex

> s:datagrid cacheAsBitmap caches an itemRenderer for every item in the dataProvider
> ----------------------------------------------------------------------------------
>
>                 Key: FLEX-34260
>                 URL: https://issues.apache.org/jira/browse/FLEX-34260
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.11.0, Apache Flex 4.12.0
>         Environment: Windows 7, FB 4.7, ie10
>            Reporter: Jeff Spicer
>              Labels: easytest
>         Attachments: ItemRendererCachingBug.fxp
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)