lua-users home
lua-l archive

Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /