Skip to content

Reduce string concatenation in ProtocolHeaders#17975

Merged
pettyjamesm merged 1 commit intotrinodb:masterfrom
pettyjamesm:improve-protocol-headers
Jun 21, 2023
Merged

Reduce string concatenation in ProtocolHeaders#17975
pettyjamesm merged 1 commit intotrinodb:masterfrom
pettyjamesm:improve-protocol-headers

Conversation

@pettyjamesm
Copy link
Copy Markdown
Member

Description

Avoids unnecessary repeated string concatenation for HTTP header names in ProtocolHeaders which also enables String#hashCode() caching to work instead of having to re-compute it when constructing HTTP request/response headers multimaps.

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Jun 20, 2023
@pettyjamesm pettyjamesm requested a review from dain June 20, 2023 16:55
@pettyjamesm pettyjamesm force-pushed the improve-protocol-headers branch from 961430c to 42664b4 Compare June 20, 2023 20:19
@pettyjamesm pettyjamesm merged commit 2ad26ce into trinodb:master Jun 21, 2023
@pettyjamesm pettyjamesm deleted the improve-protocol-headers branch June 21, 2023 02:09
@github-actions github-actions bot added this to the 420 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants