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

[jira] [Commented] (FLEX-33341) VectorCollection becomes progressively slower

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

Michael Labriola commented on FLEX-33341:
-----------------------------------------

Thanks for posting this. I am interested in the possibility that there is a memory leak, and if there are specific performance issues related to the implementaiton, although some of your performance metrics are consistent with the differences between array and vector to begin with. Some things aren't actually faster with Vector. 

On a side note, Vector's runtime type checking works. It only works however for types that Flash Player wont try to convert between. So, if you make a Vector.<Foo> and try to insert Bar, it fails. Before it fails though Flash Player will try every trick to convert things to a compatible type, so things like strings and numbers wont fail. If you get a chance, take a look at the unit tests and you will see this demonstrated.

Thanks again and I will try to take a look today,
Mike

                
> VectorCollection becomes progressively slower
> ---------------------------------------------
>
>                 Key: FLEX-33341
>                 URL: https://issues.apache.org/jira/browse/FLEX-33341
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Collections
>    Affects Versions: Apache Flex 4.9.0
>         Environment: Flash Player 11.5
>            Reporter: Simon Gladman
>              Labels: VectorCollection
>             Fix For: Apache Flex 4.9.0
>
>
> If I repeatedly addItem() and removeAll() from a VectorCollection, the removeAll() and refresh() methods become progressively slower.
> An example can be found here: http://flexmonkey.blogspot.co.uk/2013/01/apache-flex-490-vectorcollection-vs.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira