lua-users home
lua-l archive

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


Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:
> 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:

I imagine that one problem is going to be programs that use
memoization, in which case the keys are often pretty arbitrary
(whereas "typical" use of string keys probably favors short strings)
_and_ expected to be fast.  this seems to be a pretty popular
technique in Lua...

-miles

-- 
/\ /\
(^.^)
(")")
*This is the cute kitty virus, please copy this into your sig so it can spread.