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

Reduce allocations caused by producible media types #29412

Conversation

dreis2211
Copy link
Contributor

Hi,

this PR reduces some (repeated) allocations of LinkedHashSets and corresponding Nodes caused by ProducesRequestCondition.getProducibleMediaTypes().

I noticed this in a fairly vanilla app where this causes somewhat around 2-3% of the allocations during runtime, so not too huge, but noticeable.

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 1, 2022
@sdeleuze sdeleuze self-assigned this Nov 2, 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 2, 2022
@sdeleuze sdeleuze added this to the 5.3.24 milestone Nov 2, 2022
@sdeleuze sdeleuze closed this in 58bb6e7 Nov 2, 2022
@sdeleuze
Copy link
Contributor

sdeleuze commented Nov 2, 2022

Merged, 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

3 participants