Hello!
On Thu, Sep 25, 2014 at 1:08 PM, Stefan Parvu wrote:
> Anyone any ideas if I want to have a better numerical library module
> for OpenResty, can I use SciLua ? I know OpenResty requires all Lua modules
> be compatible with NGINX.
>
Only for Lua modules doing IO :)
> SciLua seems LuaJIT based, so if we want to perform numerical calculations
> within NGINX :) can we use that ? Or is it anything else resty module to do
> that ?
>
As long as every non-dividable bunch of your CPU computation won't
last for too long :) Because non-interruptable CPU computation can
also block the event loop like blocking IO. If some of your CPU
computation operation may block for long, you can manually add
ngx.sleep(0.001) in between to give a chance to the nginx event loop
to run.
Regards,
-agentzh