lua-users home
lua-l archive

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


On Friday 19 May 2006 7:41 am, askok@dnainternet.net wrote:
> Would it be possible to have a "lua_pushstring_fixed()"
> API function, to cover this issue.  That is, any pushings

why?  getting again the string isn't so slow, it's the hashing you want to 
avoid, that's done at pushstring() time.  getstring() gives you a pointer, no 
copying, hashing, or any linear-time operation involved.

-- 
Javier

Attachment: pgpK7yIL2KZNE.pgp
Description: PGP signature