Avoid LinkedList performance issues through use of ArrayDeque #25652
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Triggered by gh-25650 which replaces
LinkedList
all over the place in the 5.3 codebase, we've identified several spots where the use ofArrayDeque
instead ofLinkedList
specifically avoids performance issues (e.g. for a larger number of elements). In particular,StringUtils.cleanPath
,FastByteArrayOutputStream
andParseState
benefit from such a change in the 5.2.x line as well.The text was updated successfully, but these errors were encountered: