Skip to content
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

Avoid String allocations in MediaType.checkParameters #29428

Conversation

dreis2211
Copy link
Contributor

Hi,

while investigating things for #29421 I noticed that a tiny, but noticeable, chunk of allocations is coming from MediaType.checkParameters.

image

Together with the actual String allocation, this accounts for 1.5-2% of allocations in the benchmarks. So not huge, but avoidable if you ask me.

Cheers,
Christoph

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 4, 2022
@sdeleuze sdeleuze self-assigned this Nov 4, 2022
@sdeleuze sdeleuze added this to the 5.3.24 milestone Nov 4, 2022
@sdeleuze sdeleuze added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 4, 2022
@sdeleuze sdeleuze assigned sbrannen and unassigned sdeleuze Nov 4, 2022
@sbrannen sbrannen closed this in 2a853ae Nov 4, 2022
@sbrannen
Copy link
Member

sbrannen commented Nov 4, 2022

This has been merged into 5.3.x and main.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants