3 ms·
I went in expecting an odd explanation about how threads are inherently evil. Was surprised to see a speed comparison that largely confirmed that creating thre
by taeric 3y ago
I went in expecting an odd explanation about how threads are inherently evil. Was surprised to see a speed comparison that largely confirmed that creating threads is the slowest option. And mostly delighted to see the admission that even thread creation is not hugely problematic.
The language affordances of coroutines are not to be ignored. But performance is a siren song.
- otabdeveloper4 3y agoCreating threads is about the fastest of all system calls. (Still a system call, though, and predicated on all the other runtime crap to support the obscure pthreads API features.)