Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C7A6102B5 for ; Tue, 24 Feb 2015 00:40:43 +0000 (UTC) Received: (qmail 34874 invoked by uid 500); 24 Feb 2015 00:40:42 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 34838 invoked by uid 500); 24 Feb 2015 00:40:42 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Delivered-To: moderator for dev@flex.apache.org Received: (qmail 22712 invoked by uid 99); 24 Feb 2015 00:38:17 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of shane.doolan@gmail.com does not designate 162.253.133.43 as permitted sender) Date: Mon, 23 Feb 2015 16:30:28 -0800 (PST) From: sdoolan To: dev@flex.apache.org Message-ID: <1424737828281-45223.post@n4.nabble.com> In-Reply-To: References: <1424420839953-45186.post@n4.nabble.com> Subject: Re: [JIRA] (FLEX-34759) ArrayList performance improvements MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.