[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 6 May 2014 17:21:43 -0300
> A very minor thing, but putting `hash` before `len` and `hnext` in
> the definition of `TString` saves 8 bytes per string on my machine
> where `sizeof( size_t) == 8` and `sizeof( unsigned int ) == 4`
> (Linux x86_64). This should be safe for all architectures where
> `sizeof( size_t ) >= sizeof( unsigned int )`, and I don't know if
> there are machines out there where this isn't true ...
Many thanks. (I believe the same is true about field 'sizearray' in
'struct Table'.)
-- Roberto