November 2024
Intermediate to advanced
300 pages
7h 12m
English
At this point, you might be feeling a little perturbed. After refactoring the matches method, each of anyMatches, calculateScore, and anyRequiredCriteriaNotMet iterates through the criterion collection. Your code now loops three times instead of one. You’ve potentially tripled the time to execute matches.
Do you have a real performance problem relevant to the real requirements, or do you only suspect one exists? Many programmers speculate about where performance problems might lie and about what the best resolution might be. Unfortunately, such speculations can be quite wrong.
|
|
Base all ... |
Read now
Unlock full access