Skip to content
Sharp

Performance · interview question

What is the clearest sign that code around optimization boundaries should be refactored?

Multiple choiceHardchapter-16-curatedpremiumperformanceoptimization-boundaries
Choose one answer
Answer and explanation

Correct answer

D. When the rule is no longer easy to trace, explain, or change without breaking nearby behavior.

Why

A refactor is justified when the code stops communicating its intent. Stop after the measured bottleneck is addressed unless a new measured constraint appears.

Test yourself on Performance

A free test with instant, explained results. No account needed.

Start free test
All Performance questions →