[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: NaN packing for TValue
- From: Henk Boom <henk@...>
- Date: Thu, 24 Feb 2011 13:36:34 -0500
2011/2/23 Yura Sokolov <firstname.lastname@example.org>:
> I just made patch for NaN packing of TValue on x86 machines (as in luajit2).
> For my test script memory consumption reduced from 28Mb to 21Mb
> and perfomance improved by 3.5-5%.
> (github branch https://github.com/funny-falcon/lua/tree/pack_value )
I spent a while trying to figure out how it would work on 64-bit
before I reread your email and saw that it was x86 only ;)
This makes me wonder, how does luajit do it on 64-bit? I can
understand that in terms of supply, much less than 64 bits is
sufficient, but how do you store pointers that happen not to lie in
the available range? mmap'd storage in particular gives back pointers
that are clearly uncontiguous with the rest of your allocated memory.