I've implemented most of an array list backed by a lua table and have started using Love2d's LuaJIT FFI to make a similar system using a struct, hopefully these are useful to people
For once I actually ran profilers and made sure that what I wrote was running efficiently. I think this ArrayList implementation might be unique in that it doesn't try to hide the items from you, and you can easily fall back to pure lua code use of the table with very few surprises if you need even more performance.
https://github.com/Skeletonxf/Lua-Colle ... ree/master
Lua-Collections Array List
Who is online
Users browsing this forum: No registered users and 226 guests