Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.4
-
None
-
Patch
Description
While investigating MNG-5312, a profiler run turned up tens of thousands of calls to DefaultModelValidator.validateId consuming a considerable portion of total CPU time. Turns out the existing code uses String.matches, which recompiles the regex on each call, which is far more expensive than applying a precompiled pattern. A trivial fix makes this method disappear from the hot spots shown by the profiler, though the fix of MNG-5312 of course means that there would be far fewer calls to this method to begin with.
Attachments
Attachments
Issue Links
- relates to
-
MNG-5312 MavenProject.getParent intolerably slow when import scope used heavily
- Closed