I re-ran the tests on a release player/swf as you suggested (I should have thought of that), shuffled the logic to give the splice preference in the if-else statements, and reduced the calls to 'length' with good results.
- ArrayList.addItemAt is 40x faster when adding both int's and IEventDispatcher's at the start/end of the list. - ArrayList.removeItemAt is 4x faster when removing items from the start of the list, and over 200x faster at the end for both both int's and IEventDispatcher's - Random add/removes are marginally improved, I suspect the odd time it hits the start or end offsets the extra logic added to check if the splice can be avoided. See the jira comments for a table of results and an updated patch -- View this message in context: http://apache-flex-development.2333347.n4.nabble.com/JIRA-FLEX-34759-ArrayList-performance-improvements-tp45186p45223.html Sent from the Apache Flex Development mailing list archive at Nabble.com.