Issue 2: InternalScanner uses inefficient String.replace() method
Status:  Fixed
Owner:
Closed:  Nov 2008
Project Member Reported by mjryall@gmail.com, Nov 25, 2008
Profiling Confluence's start-up showed a "hot spot" was
InternalScanner.loadImplementationsInJar(), particularly the line that does
this:

> pkg = pkg.replace("/", ".");

You can replace this with:

> pkg = pkg.replace('/', '.');

This is functionally equivalent, and faster because it iterates through the
String rather than doing a regular expression replacement.

Nov 25, 2008
Project Member #1 mjryall@gmail.com
(No comment was entered for this change.)
Status: Fixed
Labels: -Type-Defect Type-Enhancement
Nov 25, 2008
Project Member #2 mjryall@gmail.com
(No comment was entered for this change.)
Labels: Performance