-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize Map with correct size in RequestPredicates
Prior to this commit, the `RequestPredicates` would add new attributes to the existing request attributes by creating a new `LinkedHashMap` with the total number of elements as its new initial capacity. This would not achieve optimal performance as initial resize or rehash operations could be expected. Consistently using `CollectionUtils#newLinkedHashMap` avoids this problem. Closes gh-32201
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters