3 ms·
>It's not the fastest way to do I/O, but Go's approach isn't either Though Go's is faster. >forego the thread management syscalls and the stack, like nginx do
by acconsta 11y ago
>It's not the fastest way to do I/O, but Go's approach isn't either
Though Go's is faster.
>forego the thread management syscalls and the stack, like nginx does.
The problem is nginx uses state machines, which aren't a general solution. Stackless coroutines allow you to write functions that the compiler (or a clever library) transforms into state machines.