4 ms·
Go's threading model involves a lot of tiny (but growable) stacks and calling C functions almost immediately stack overflows. Calling C safely is then slow bec
by 3836293648 1y ago
Go's threading model involves a lot of tiny (but growable) stacks and calling C functions almost immediately stack overflows.
Calling C safely is then slow because you have to allocate a larger stack, copy data around and mess with the GC.