mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-08 02:09:06 +00:00
Construct JarFileUrlKey directly from already-parsed URL specification to avoid unnecessary URL construction and parsing on cache hits. A URL is only created on a cache miss when the JarFile needs to be instantiated. This eliminates redundant object allocation in the hot path when frameworks probe for optional classes or package-info metadata across a large executable JAR. See gh-51827 Signed-off-by: sharanrenukeshbharmshetty <sbharmshetty@gmail.com>