ObscureWorlds Libraries
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: ObscureWorlds Libraries
Since every instance of table.insert I could find here inserted at the end, this is not a problem for StoneCrow.
Help us help you: attach a .love.
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: ObscureWorlds Libraries
So basically just using table.insert without an index is equivalent to table[#table+1] = ..., right?Robin wrote:Since every instance of table.insert I could find here inserted at the end, this is not a problem for StoneCrow.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: ObscureWorlds Libraries
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.
Help us help you: attach a .love.
- StoneCrow
- Party member
- Posts: 199
- Joined: Sat Apr 17, 2010 9:31 am
- Location: Wales the land of leeks and leaks
- Contact:
Re: ObscureWorlds Libraries
Thanks I will keep that in mind!
Hadn't thought of it that way before.
Hadn't thought of it that way before.
Dull but sincere filler.
Who is online
Users browsing this forum: No registered users and 3 guests