How to do CPU intensive tasks?


#1

Hello,

firstly I know that CPU intensive tasks should run in separate thread (not in main), but how fast is Electron?

I mean is possible to write assembly or C++ code in electron for CPU intensive tasks?


#2

It’s possible to include binaries with Electron that can handle these intensive tasks.


#3

Is there some kind of example? :slight_smile:


#4

Atom packages like script and hydrogen use external binaries for tasks that Atom can’t manage. Electron doesn’t do anything with spawning external processes that Node doesn’t do.