Usefulness of the “inline” feature

前端 未结 8 1312
难免孤独
难免孤独 2020-12-06 14:40

There\'s two things about inlining:

  • The inline keyword will be ignored if the compiler determines that the function cannot be inlined.
  • Th
8条回答
  •  感动是毒
    2020-12-06 15:13

    You may not want to inline everywhere it is possible. This could increase the size of your binaries too much. You may have a select few functions that aren't used very much that inlining would allow to run faster without increasing the size of your bits significantly

提交回复
热议问题