gpt4 book ai didi

apache-flex - ActionScript-3 : Array vs. ArrayList

转载 作者:行者123 更新时间:2023-12-01 02:21:55 24 4
gpt4 key购买 nike

谁能告诉我哪个更快:Array 或 ArrayList? (ActionScript3)

我试图找到关于此的页面,但没有找到任何内容。谢谢。

最佳答案

The ArrayList class is a simple implementation of IList that uses a backing Array as the source of the data. Items in the backing Array can be accessed and manipulated using the methods and properties of the IList interface. Operations on an ArrayList instance modify the data source; for example, if you use the removeItemAt() method on an ArrayList, you remove the item from the underlying Array.

显然 ArrayList 类包装了一个 Array 对象——因此一个普通的 Array 会比一个 ArrayList 对象更快。

关于apache-flex - ActionScript-3 : Array vs. ArrayList,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3599233/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com