lua-users home
lua-l archive

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


> 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