• Phillip Webb's avatar
    Improve performance of fat jar loading · a3ceaf63
    Phillip Webb authored
    Tweak 'fat jar' handling to generally improve performance:
    
    - Allow JarURLConnection to throw a static FileNotFoundException when
      loading classes. This exception is thrown many times when attempting
      to load a class and is silently swallowed so there is no point in
      providing the entry name.
    - Expose JarFile.getJarEntryData(AsciiBytes) and store AsciiBytes in
      the JarURLConnection. Previously AsciiBytes were created, discarded
      then created again.
    - Use EMPTY_JAR_URL for the JarURLConnection super constructor. The URL
      is never actually used so we can improve performance by using a
      constant.
    - Extract JarEntryName for possible caching. The jar entry name
      extracted from the URL is now contained in an inner JarEntryName
      class. This could be cached if necessary (although currently it is
      not because no perceivable performance benefit was observed)
    
    Fixes gh-1119
    a3ceaf63
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...