In a recent startup performance analysis, the call to
getBundle("sun.awt.resources.awt") appeared to take about 7% of the
total time in starting a simple AWT application. Most of the work
here boiled down into several expensive calls relating to ClassPath
access and Files:
- URLClassPath.getLoader is called several times at nearly 10 ms per time
- Launcher.getFileURL is called several times at about 3 ms per time
- various other String and File calls are made many times. While individually
inexpensive, these calls add up in the long run.