[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Making luaconf.h settings available in Lua
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 28 Feb 2011 14:31:07 -0300
> Reuben Thomas <rrt@sc3d.org> writes:
> >> It's in 5.1 as well. Just not documented.
> >
> > Wow.
> >
> > No prizes for the weird format, though. What's wrong with a table?
>
> This way probably saves a good 20-30 bytes of memory... :]
Actually it is more like 500 bytes, if I did the math right (not
counting the extra C code to create the table). Given that very few
people use package.config, and those that use probably only need its
first character, it does not look that cheap to me.
-- Roberto