Search found 7 matches
- Fri Jan 18, 2013 9:49 pm
- Forum: General
- Topic: Nil vs False, memory question
- Replies: 19
- Views: 8294
Re: Nil vs False, memory question
One thing I do remember is that, under normal circumstances, lua will not shrink the memory that's already allocated to a table, so you need to make sure that those empty spaces never get allocated in the first place (as opposed to creating all of them, then running back through and setting them al...
- Fri Jan 18, 2013 3:53 am
- Forum: General
- Topic: Hi! Need graph library.
- Replies: 4
- Views: 3155
Re: Hi! Need graph library.
Thanks so much, I'll look into these ^_^
- Fri Jan 18, 2013 3:43 am
- Forum: General
- Topic: Hi! Need graph library.
- Replies: 4
- Views: 3155
Re: Hi! Need graph library.
Graph data structure, yes, nodes, edges, ect. It would be nice if they came equipped with some algorithms such as Dijkstras, max flow, ect
- Fri Jan 18, 2013 3:41 am
- Forum: General
- Topic: Nil vs False, memory question
- Replies: 19
- Views: 8294
Re: Nil vs False, memory question
yeah, sorry I just edited my message lol. I didn't recall seeing that about the function.
- Fri Jan 18, 2013 3:39 am
- Forum: General
- Topic: Nil vs False, memory question
- Replies: 19
- Views: 8294
Re: Nil vs False, memory question
collect garbage will perform a full garbage collection run. I don't think it returns info. I did however just find the gcinfo() function. According to some scarce documentation, it returns two arguments: the number of bytes used and the capacity of the collector. That should do it! EDIT: ah! Yes, co...
- Fri Jan 18, 2013 2:03 am
- Forum: General
- Topic: Nil vs False, memory question
- Replies: 19
- Views: 8294
Re: Nil vs False, memory question
hmmmm... Actually yeah it should be! At first glance it sounds silly, but since lua tables are not contiguous arrays (but rather hash tables), the amount of memory taken up is determined by how many non-nil entries are in the table. One thing I do remember is that, under normal circumstances, lua wi...
- Fri Jan 18, 2013 1:54 am
- Forum: General
- Topic: Hi! Need graph library.
- Replies: 4
- Views: 3155
Hi! Need graph library.
Hey guys! Been lurking on here for a while, but this will be my first post. I'm actually not specifically using LOVE, but I've been finding many of the libraries here very helpful (to the authors of 'inspect' and 'serialize', I use those constantly). I've also been scouting around and experimentatio...