5 ms·
Does the image processing happen in a child process in node? I'm curious how your code does the heavy CPU without blocking node's main thread.
by futuremint 16y ago
Does the image processing happen in a child process in node? I'm curious how your code does the heavy CPU without blocking node's main thread.
- bfm 16y agoYes image processing happens in a child process. Right now I'm using GraphicsMagic resource limiting flag -limit for preventing it from taking down all the resources.
- futuremint 16y agoCool. I noticed you're using Joyent too. I'm just starting a personal project on my own no.de smartmachine I got a few months ago.
- DTrejo 16y agoWould what you're doing right now be possible using canvas on the client side? On second thought, that might make things much more complicated / slow, you'd have to write something that allowed clients to send back processed results to speed things up for future searches by other users. I wonder if there's any desire for something like http://maprejuice.com/ http://maprejuice.com/, but easily applicable to any processing task that needs to happen in realtime * , as mentioned in the previous paragraph. * But also support cached results. PS If/when your no.de server crashes, do you have to push again to get it to restart? I was having this problem the other day — it's annoying to have to add a space to a file, commit and push just to restart the server.
- bfm 16y agoI'm sure this can be done using Canvas. I might give it a try as a learning exercise in the future. Thanks for the suggestion :) Didn't know MapRejuice, looks promising. Regarding no.de, I have the same issues you describe. I'm looking forward moving to a larger SmartMachine where I can deploy using capistrano.