ObscureWorlds Libraries

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: ObscureWorlds Libraries

Post by Robin »

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.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: ObscureWorlds Libraries

Post 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?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: ObscureWorlds Libraries

Post 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.
Help us help you: attach a .love.
User avatar
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

Post by StoneCrow »

Thanks I will keep that in mind!
Hadn't thought of it that way before.
Dull but sincere filler.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest