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

Initialize (another) Map with correct size in RequestPredicates #32215

Closed

Conversation

kilink
Copy link
Contributor

@kilink kilink commented Feb 7, 2024

Fix another instance where a LinkedHashMap was initialized with an initial capacity that would always cause a resize / rehash to occur. Switch to CollectionUtils.newLinkedHashMap to size the map appropiately for the expected number of items.

See d5cb1d9, this is just another case I missed.

Fix another instance where a LinkedHashMap was initialized with an initial
capacity that would always cause a resize / rehash to occur. Switch to
CollectionUtils.newLinkedHashMap to size the map appropiately for the expected
number of items.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 7, 2024
@bclozel bclozel self-assigned this Feb 7, 2024
@bclozel bclozel 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 Feb 7, 2024
@bclozel bclozel added this to the 6.1.4 milestone Feb 7, 2024
@bclozel bclozel closed this in 4486ab1 Feb 7, 2024
@bclozel
Copy link
Member

bclozel commented Feb 7, 2024

Thanks @kilink ! I missed that one too while reviewing the previous PR.

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