Earlier quoted context omitted.
Neko isn't that fast, since the bytecode is dynamically typed. That combined with the fact that it's not really actively developed anymore, you'd probably be better off checking out its successor called "HashLink" instead (see comment thread above). Btw, a JVM target (generating JVM bytecode directly) was recently merged into the Haxe compiler. Previously there was already a target that generates Java source code, bu…
Why would types speed up the code?
This is almost always cache miss.
If the collection is polymorphic it's even worse because you dereference to access the dispatch table which then redirects you to the real value.
Furthermore, each variable will need heap allocation and tracking, stressing the garbage collector and the underlying allocator (unless you preallocate big chunks like Java).