inline functions in C++# Programming - 葵花宝典
h*e
1 楼
said it's more efficient to put often-used and short functions as inline, so
they are taken care of at compile time, to save function calls overhead and
improve performance thereafter. this I understand, but how do u define "short
functions"?? dozens of lines or a
few hundred lines? or some big functions, I can divide them into smaller
funcs and make them inline?? besides, what bad impact if I make some large
funcs inline?
they are taken care of at compile time, to save function calls overhead and
improve performance thereafter. this I understand, but how do u define "short
functions"?? dozens of lines or a
few hundred lines? or some big functions, I can divide them into smaller
funcs and make them inline?? besides, what bad impact if I make some large
funcs inline?