RFR: 8347167: Implementation in com.sun.net.httpserver.Headers.normalize() can be improved [v2]
Eirik Bjørsnøs
eirbjo at openjdk.org
Wed Nov 19 11:33:39 UTC 2025
On Mon, 17 Nov 2025 16:06:55 GMT, Josiah Noel <duke at openjdk.org> wrote:
>> Following the direction outlined in the net-dev discussion, I've updated the `com.sun.net.httpserver.Headers.normalize()` method to no longer allocate a superfluous char array when the header is already normalized.
>
> Josiah Noel has updated the pull request incrementally with one additional commit since the last revision:
>
> patch
I have not reviewed the code, just observing that the issue title here is not very descriptive. (Just about any interesting method in the JDK can be "improved" one way or the other)
Consider something more specific, like: "Reduce allocation in x.y.z", "Improve performance of x.y.z"
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27276#issuecomment-3552196024
More information about the net-dev
mailing list