TopHattedCoder
unread,Mar 30, 2013, 10:02:06 PM3/30/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Out of interest, I decided to run some benchmarks on the different iterables and their speed on each target. Here are the fastest dynamically-sized iterables out of List, Array and GenericStack for each platform, based on a benchmark of pushing every number up to 2 ^ 16 then popping each number:
Javascript: Array
Neko: List with 0.04 seconds [0.036 with hybrid array-vector Collection]
Java: Array with 0.02 seconds (GenericStack compilation failed) [0.021 with Array-based Collection]
C++: Array with 0.0058 seconds (GenericStack compilation failed) [0.007 with Collection that typedefs to GenericStack?]
Flash: Array with 0.01 seconds (GenericStack threw a ReferenceError) [0.007 with Collection that typedefs to Array]
Anyone know of any faster ways of implementing the Collection for each target or know why the GenericStack fails? This is on the very latest Haxe and Neko, by the way.