Ok, I got Mark's to work however it does not work when turned into a prototype and I set list = this. Why it doesn't work may be the result of another problem, though, and I'm not sure yet what it is, but here's the behavior.
I created a movie with 3 buttons. An new array is instantiated. ButtonA generates an array of 100,000 items. ButtonB does recursive, ButtonC does iterative. The first time I feed Mark's script a list of 100,000 items, it scores ~2135ms. The second and every subsequent time I run his script on the same list, it scores ~1250ms. That's a suspiciously huge jump. So, then I generate a new array and run the test again and again the first test runs much slower than subsequent tests. Somehow, Mark's script is cheating. ;) So, I decided to run his script on the empty array the first time and then feed it then 100,000 item array. I got 0ms on the empty array, as expected, but then I fed it the 100,000 item array and it scored 0ms every time. Something is amiss. I'm not sure what's wrong with his code, but the results I got with the recursive script were consistent every time and consistently faster than the iterative code's first run speed, especially the more items there were. At 10,000 items, it was close. At 100,000 items, it was almost a second difference (recursion scored ~1400ms to ~1700ms while iterative scored well over ~2000ms every time). Mark, please check your script to try and find out what's wrong with it. I'd like to run some more accurate comparisons. Thanks, Steven _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

