Hacker News new | ask | show | jobs
by draven 4206 days 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.

2 comments

Yes 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.
This 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.