Alex Rivera | Logout

What is Boilerplate code, Hot code and Hot spots?

Asked 2011-10-27T13:58:34.267
10

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 example, which clearly elaborate/describe these concepts with the realization of these problems/concepts in real world development scenarios.

Can somebody please thoroughly explain these terms, example scenarios, and where these concepts and terms are likely used.

Thanks.

Edit
Report

1 Answer

15

"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.

answered 2011-10-27T14:02:22.003

Your Answer