Il 07/11/2015 16:46, Matthew Wild ha scritto:This code is part of a videogames addon, and is executed every frame refresh (about every tenth of a second) for which using tables created in continuation is a considerable waste of memory. If there are simpler solutions, show them to me as well. I asked your help for this reason ;-)
If you have actual constraints, revealing them might allow people to
help you better. If you don't have any constraints and just want it to
perform well, then there are some really much simpler and more
efficient solutions than your implementation.