[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata
- From: Coda Highland <chighland@...>
- Date: Sun, 1 Dec 2013 23:45:18 -0800
On Sun, Dec 1, 2013 at 10:45 PM, Sir Pogsalot <sir.pogsalot@gmail.com> wrote:
> Coda: I'm creating potentially 1000 userdata objects with associated
> private userdata for a *small* server. An extra table on each would be
> noticeable..
How small are we talking? Like, embedded hardware? A table with a
single entry at index 1 (therefore not containing any hash part) is
pretty compact, so if you're pinching kilobytes it might make sense to
avoid it but if you've got a few megabytes free it's probably not
worth worrying about.
/s/ Adam