Originally Posted by Karawasa
Is that really enough of a difference to come to that conclusion? There is more going on than just the "Get Index" function in all of these systems. I wonder what you end up with if you consider all aspects. You're welcome to PM me if you don't want to hijack the thread.
Well, UIU/AI inlining their GetUnitId call makes it as fast as a single native. PUI's GetUnitIndex calls a few natives, performs several array lookups, performs several array sets, and checks at least a few if/then comparisons before returning the value. The difference is monumental, although in practical applications it may not matter. (Depends upon the frequency of your calling it, really)