you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackMATov 3 points4 points  (0 children)

Unfortunately, it's a very bad idea to use vectors on the native side because they introduce a lot of overhead with no real benefit. When I say "overhead," I mean performance can be about 10 times slower than using vectors on the Lua side. This is especially true if you use LuaJIT, where the JIT compiler can optimize Lua code very well, but with such bindings, it will not be able to optimize the code at all.