非常感谢,查了下,tcp.send 一个 table时,会调用 ngx_http_lua_socket_tcp_send 函数,检测到参数为 LUA_TTABLE 类型时,再调用 ngx_http_lua_copy_str_in_table 将table转为字符串。
总结来说,就是要写个c接口,传入table,返回string。 效果还需验证。
------------------ 原始邮件 ------------------
发件人: "DeJiang Zhu";<douj...@gmail.com>;
发送时间: 2016年12月13日(星期二) 下午2:44
收件人: "openresty"<openresty@googlegroups.com>;
主题: Re: [openresty] luajit在处理某些字符串场景时出现性能问题
Hello
--