Hello!

On Tue, Jan 7, 2014 at 11:51 AM, develephant wrote:
>
> That is very generous of you, thank you.  My conversion was close to this, 
> but I was getting stuck on the "sub" part.  Again, thank you.
>

Just a side note regarding performance: use of string.sub() is
expensive because it often involves string intern'ing and GC overhead
while string.byte() is much much cheaper. Also, using .. to
concatenate a lot of string pieces can also be very expensive. And
that's why I implemented the nonblocking version of LuaSocket's
recieve("*l") in my cosocket API for ngx_lua:

    https://github.com/chaoslawful/lua-nginx-module#tcpsockreceive

Regards,
-agentzh

-- 
You received this message because you are subscribed to the Google Groups 
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to