Usefulness of the “inline” feature

前端 未结 8 1305
难免孤独
难免孤独 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:00

    It depends on your environment and what you want to do, so it is really hard to say when inlining is preferrable.

    This link has some interesting reading about inlining. And some sound advice (which pretty much boils down to: avoid doing it)

提交回复
热议问题