Performance Analysis
In program performance analysis, what is a hotspot?
- AThe hottest location on a chip
- BA place where wireless LAN is available
- CA small part of the code that consumes most of the execution time
Show answer and explanation
Answer: C. A small part of the code that consumes most of the execution time
In many programs, loops or functions making up a few percent of the code consume most of the execution time. These are called hotspots. Finding them with a profiler and concentrating algorithmic and memory-usage improvements there yields large gains for little effort. Conversely, optimizing rarely executed code barely speeds up the whole.
- A. This question concerns programs.
- B. It differs from a Wi-Fi hotspot.
- C. Correct. Improving it is most effective.