What is Boilerplate code, Hot code and Hot spots?

前端 未结 5 939
無奈伤痛
無奈伤痛 2020-12-01 15:11

I know these terms are used in context of performance achievement/optimization.

Recently have been working on that, and have tried searching; but didn\'t get any e

5条回答
  •  孤街浪徒
    2020-12-01 15:51

    "Boilerplate" has nothing to do with performance: it just means standard code that is required to define an application or work with some framework. It's code that is likely to be identical in every application.

    A "hot spot", on the other hand, means a part of the code that is executed many times and therefore its performance matters a lot to the overall application performance. Usually a hot spot is identified by actual profiling: it's not a hot spot if it's executed many times but is so trivial that its impact on performance is minimal.

提交回复
热议问题