Re: For 0.9? Avoiding string copy

Kristoffer Danielsson <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
If I process a 1000 files, line by line, then this does make a difference.

 

Also, I believe the LUA api does provide such a function (lua_pushstring?), so naturally luabind would support it too.
 


From: [email protected]
Date: Wed, 9 Dec 2009 22:35:33 +0800
To: [email protected]
Subject: Re: [luabind] For 0.9? Avoiding string copy

Copying string is not a important thing. 
First benchmark it, then optimize it.


On Wed, Dec 9, 2009 at 20:50, Kristoffer Danielsson <[email protected]> wrote:


Please see my old post: http://old.nabble.com/call_function-with-parts-of-string-%2B-length-p24970722.html
 
Any chance you could add such a wrapper for 0.9? It's really painful to copy strings that do not need to be copied!
 
/Chris



Uppgradera till en ny och säkrare version av Windows Live Messenger! Uppgradera till en ny och säkrare version av Windows Live Messenger!
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user



-- 
Regards,
Linker Lin
[email protected]
 		 	   		  
_________________________________________________________________
Lagra alla dina foton på Skydrive. Det är enkelt och säkert!
http://www.skydrive.live.com

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.