3 ms·
Depends on what you're trying to do. If it's something that really can be split into small parallel jobs, then NIFs make sense here; the overhead is pretty low
by yellowapple 10y ago
Depends on what you're trying to do.
If it's something that really can be split into small parallel jobs, then NIFs make sense here; the overhead is pretty low, since the NIFs are linked into the VM itself.
If it's something that can't be easily split into small parallel jobs, then you might want to go with a port, such that the long-running job doesn't hang your whole Erlang VM.