3 ms·
> require code to be as fast as possible It's also pretty easy to write the performance critical parts of the code in C and call them from Go.
by draven 12y ago
> require code to be as fast as possible
It's also pretty easy to write the performance critical parts of the code in C and call them from Go.
- NateDad 12y agoYes but you really almost never need to do that. The speed difference is usually only a factor of 2ish... It's not like the factor of 10-30x for interpreted languages.
- Jweb_Guru 12y agoThis will likely not have the desired effect if you are calling into the C code from within a tight loop. Go's C FFI is not low overhead.