lua-users home
lua-l archive

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


> > Are there any tests for these experimental changes?
> >
> > Liam
> 
> I should add that I realise these are internal changes yet do not know
> where the test suite is for the released 5.2 version.

The tests are the same as for 5.2.0. However, what we are most
interested is about the performance of this new version against 5.2.0 in
real programs (in respect to string manipulation).

The main change in this experimental version is that only strings
smaller than a certain limit get internalized. That can slow down a
little programs that use long strings as keys, but on the other hand
can speed up a little programs that use long strings not as keys. The
default limit is 32 bytes for 32-bit machines and 64 bytes for 64-bit
machines:

#define LUA_MAXSHORTLEN         (8 * sizeof(void*))

It may be interesting to try different definitions (e.g., 32 bytes
for all architectures).

-- Roberto