Do you take a performance hit when packaging you classes into Jar files rather than just running the unpackaged classes? Say for example you have a large application, if many files need to be pulled from the archive, would this slow down your application?
Share
No, it won’t. The classes are loaded in memory and used from there.
Possibly it might slow down startup times a bit, but that is negligible. Also, if you are aggressively loading and unload classes at runtime, there might be a difference, but still negligible.
The bottom-line is: You should not unpack jars for performance reasons.