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 » Tue Apr 01, 2014 6:39 pm

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: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: ObscureWorlds Libraries

Post by Jasoco » Tue Apr 01, 2014 7:52 pm

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 » Wed Apr 02, 2014 12:13 am

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 » Thu Apr 03, 2014 7:50 pm

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 16 guests