Welcome! Log In Create A New Profile

Advanced

Re: nginx, echo module & lua

agentzh
May 03, 2012 08:54AM
On Thu, May 3, 2012 at 3:53 PM, Antonio P.P. Almeida <appa@perusio.net> wrote:
> A little thread hijacking. Are there plans to provide an HTTP response
> parser? I suppose that for performance reasons that would have to
> be in C along the lines of the Redis parser.
>
> https://github.com/agentzh/lua-redis-parser
>
> That's what's missing, IMHO, in order to completely replace
> luasocket.
>

Liseen Wan has been working on the lua-resty-http library:

https://github.com/liseen/lua-resty-http

We'll extend that to support more and more HTTP features in the near future.

But I think it will remain pure Lua because introducing C may not
really help here given the performance of LuaJIT 2.0 (and it has
already been proven in lua-resty-mysql where rewriting the MySQL
packet parser in C actually slowed things down because going across
language boundary is more expensive).

But anyway we can provide pure C API for ngx_lua cosocket, just like
ngx_http_upstream, so a pure C implementation for those lua-resty-*
library will have a chance to achieve better performance than the pure
Lua implementations, but I'm not 100% sure ;)

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx, echo module & lua

Pierre May 02, 2012 04:12AM

Re: nginx, echo module & lua

agentzh May 02, 2012 07:48AM

Re: nginx, echo module & lua

Pierre May 02, 2012 09:40AM

Re: nginx, echo module & lua

agentzh May 02, 2012 11:12AM

Re: nginx, echo module & lua

Pierre May 02, 2012 07:36PM

Re: nginx, echo module & lua

Antonio P.P. Almeida May 03, 2012 03:54AM

Re: nginx, echo module & lua

agentzh May 03, 2012 08:54AM

Re: nginx, echo module & lua

Pierre May 03, 2012 06:44AM

Re: nginx, echo module & lua

agentzh May 03, 2012 09:04AM

Re: nginx, echo module & lua

Pierre May 03, 2012 11:40AM

Re: nginx, echo module & lua

agentzh May 03, 2012 08:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready