jt_gibson 0.311 0.326 0.329 |
It seems like using objects means you trigger garbage collection and may not have consistent running times.
I'm impressed with how much better BYOND manages lists than objects. The syntax isn't ideal but it gives you some idea of how much faster built-in vectors could be. Having a built-in vector type would also make it possible to make built-in procs that deal with coordinates, colors, or any set of numbers use vectors (it'd be much nicer if icon.GetPixel() returned a vector instead of a "#RRGGBBAA" string).
Here's the code:
#define DEBUG |
Ah, those results were from the ProcLib that you linked to. jt_vectors seems to perform worst of all with 0.205 / 1.661