Re:Experimenting with Node.js
by spc476 on Wednesday July 28, 2010 @05:33AM
(#1553949)
I'm not using LuaSocket but my own homegrown code based off epoll() (it was a learning experience in embedding Lua). It could probably be adapted to libev if I had the interest in doing so.
[ Parent
| on HN ]
Re:Experimenting with Node.js
by silentbicycle on Wednesday July 28, 2010 @08:39AM
(#1554196)
Ok. What you wrote would adapt to select and nonblocking sockets in LuaSocket pretty easily, FWIW. Using epoll / kqueue (directly or via libev/libevent) scales better, but you're blocking on the sleep, so it wouldn't matter.