On Sunday, March 16, 2014 10:47:22 AM UTC-7, Andy Zelinski wrote: > > I am hoping for someone to point me in the right direction (examples, > info) on how best to handle the need for some processor heavy computations > that might best be executed with C++ math libraries. >
> is this best handled by forking a child_process? use node-ffi? wrap a c++ > object that can handle the math and pass the parameters? > Depending on the needs of your application, in the extreme case the most performant way of handling this will probably be to tie into the native API and use libuv to queue work in a thread. Once that work has completed you would call a callback and return the results. This will also be the most complicated solution, so I'd only recommend going this route if absolutely necessary. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" 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/d/optout.
