[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String parameters when calling C from Lua
- From: Javier Guerra <javier@...>
- Date: Fri, 19 May 2006 07:47:41 -0500
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:
pgplvntGEMS73.pgp
Description: PGP signature