-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More classloaders cleanup #40557
More classloaders cleanup #40557
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks fine but I would like to let @dmlloyd have a look as he like low level stuff :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but it is worth noting that for whatever reason, ZipFileInflaterInputStream
does not optimize the array size used by readAllBytes
, so there is going to be a buffered copy by that method in addition to the one potentially used internally by InflaterInputStream
. Ideally we'd do the equivalent of readNBytes(entry.getUncompressedSize())
in this case. But, there are a lot of layers that make this difficult.
Status for workflow
|
@dmlloyd thanks for the pointer to I noticed this profiling bootstraps cycles during live-reload; I had not noticed the inefficiency in |
A very minor cleanup, but paving the road for other PRs which would otherwise depend on this.
JarClassPathElement
.readStreamContents(InputStream)
which has been deprecated for yearsIoUtil
to be reused more by upcoming improvements in the Hibernate extensionI haven't deleted
readStreamContents
yet as there are some tests using it still.