[JIRA] (FLEX-34759) ArrayList performance improvements

2015-02-20 Thread piotrz
Hi Guys, What do you think about these patch ? It looks quite good. Could it break something ? https://issues.apache.org/jira/browse/FLEX-34759 Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/JIRA-F

Re: [JIRA] (FLEX-34759) ArrayList performance improvements

2015-02-20 Thread Alex Harui
Well, it looks like it can cause a 10% performance degradation for the random access case. So, I don’t like it, but not enough to veto it. I don’t want to discourage folks from sharing patches that optimize performance. Someday, FlexJS will have a variety of IList-type implementations, some of w

How to know when a preload SWF is being unloaded?

2015-02-20 Thread Darrell Loverin
This question is about the SWF loaded as a result of being specified with the preloadSWF key. The "allComplete" event tells the preload SWF when the application has been loaded but is there an event to tell when the application is being unloaded so the preload SWF can flush any buffered data? Than

Re: How to know when a preload SWF is being unloaded?

2015-02-20 Thread Alex Harui
Did you try the UNLOAD event on LoaderInfo? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/di splay/LoaderInfo.html#event:unload On 2/20/15, 6:15 AM, "Darrell Loverin" wrote: >This question is about the SWF loaded as a result of being specified with >the preloadSWF key

Re: [JIRA] (FLEX-34759) ArrayList performance improvements

2015-02-20 Thread Alex Harui
Thinking about this a bit more, it is troubling that adding a couple “if" statements can cause a 10% performance degradation. It occurred to me that the degradation might be focused on this line: if (index == length) And if it was rewritten as if (index == _source.length) it wo

Re: How to know when a preload SWF is being unloaded?

2015-02-20 Thread Darrell Loverin
yes, but I don't get an event. On Fri, Feb 20, 2015 at 12:11 PM, Alex Harui wrote: > Did you try the UNLOAD event on LoaderInfo? > > http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/di > splay/LoaderInfo.html#event:unload > > On 2/20/15, 6:15 AM, "Darrell Loverin" wrote:

Re: How to know when a preload SWF is being unloaded?

2015-02-20 Thread Darrell Loverin
Here's a code snippet: *this*.loaderInfo.addEventListener(Event.UNLOAD, unloadHandler); On Fri, Feb 20, 2015 at 1:47 PM, Darrell Loverin wrote: > yes, but I don't get an event. > > On Fri, Feb 20, 2015 at 12:11 PM, Alex Harui wrote: > >> Did you try the UNLOAD event on LoaderInfo? >> >> >> htt