On Tuesday 11 March 2008, Benson Margulies wrote: > I was bemused to see that the big pile of time in the classloader was > spent constructing URL objects, and then messing with File objects to > look for files. Now, on the one hand, running in eclipse, we have a > big classpath of directories, and if i was running the app with the > classes all jarred up, it would get smaller. But how much smaller, I > wonder? Does the JRE cache JAR files?
Yes. One more thing you try is with a kit (instead of the dev environment), go into the lib dir and run: jar -i cxf-2.1-incubator-SNAPSHOT.jar to have it add an index to the bundle jar. Heck, you could also try something like: ls -1 | xargs -n 1 jar -i to index as much as it can. (not all are indexable) SUPPOSEDLY the indexes help the classloaders know exactly what is in each jar making it easier/faster for them to get the URL's and such. It might be interesting to see a before/after benchmarks to see if it really does help. :-) -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
