Page 2 of 2
Re: ObscureWorlds Libraries
Posted: Tue Apr 01, 2014 6:39 pm
by Robin
Since every instance of table.insert I could find here inserted at the end, this is not a problem for StoneCrow.
Re: ObscureWorlds Libraries
Posted: Tue Apr 01, 2014 7:52 pm
by Jasoco
Robin wrote:Since every instance of table.insert I could find here inserted at the end, this is not a problem for StoneCrow.
So basically just using table.insert without an index is equivalent to
table[#table+1] = ..., right?
Re: ObscureWorlds Libraries
Posted: Wed Apr 02, 2014 12:13 am
by Robin
Yeah, and I think it has similar performance. At least close enough to not bother choosing one over the other for optimisation purposes until and unless you discover it's a bottleneck for your game.
Re: ObscureWorlds Libraries
Posted: Thu Apr 03, 2014 7:50 pm
by StoneCrow
Thanks I will keep that in mind!
Hadn't thought of it that way before.