Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: