3 ms·
That is pretty neat. I'm glad he mentioned that the Go compiler will not inline functions written in assembly, but it will inline small Go functions.
by Xeoncross 14y ago
That is pretty neat. I'm glad he mentioned that the Go compiler will not inline functions written in assembly, but it will inline small Go functions.
- dualogy 14y agoYeah but the list of restrictions preventing inlining is pretty exhaustive...
- georgemcbay 14y agoThis is true currently but both the inlining and the garbage collector have improved tremendously over the past year and should continue to get better. I do wish Go supported an explicit inline modifier that worked like haxe's though (unlike the C/C++ one which is more of a suggestion).
- pcwalton 14y agoMost C dialects (for example, GCC and Clang) provide some form of explicit inline qualifier that forces inlining, for example "attribute((always_inline))".