Skip to content

Avoid LinkedList performance issues through use of ArrayDeque #25652

@jhoeller

Description

@jhoeller

Triggered by gh-25650 which replaces LinkedList all over the place in the 5.3 codebase, we've identified several spots where the use of ArrayDeque instead of LinkedList specifically avoids performance issues (e.g. for a larger number of elements). In particular, StringUtils.cleanPath, FastByteArrayOutputStream and ParseState benefit from such a change in the 5.2.x line as well.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions