Skip to content

Performance: use ArrayList for serializer constants - #1871

Open
Ouweshs28 wants to merge 1 commit into
OpenFeign:masterfrom
Ouweshs28:perf/arraylist-serializer-constants
Open

Performance: use ArrayList for serializer constants#1871
Ouweshs28 wants to merge 1 commit into
OpenFeign:masterfrom
Ouweshs28:perf/arraylist-serializer-constants

Conversation

@Ouweshs28

Copy link
Copy Markdown

Use ArrayList for serializer constants

Summary

Replace the LinkedList implementation used by SerializerBase.constants with ArrayList.

Motivation

Serializer constants are only appended to, indexed, and iterated during query serialization. ArrayList is a better fit for this access pattern because it provides contiguous storage, lower per-element memory overhead, and efficient indexed access.

Scope

  • Preserve the existing List<Object> API.
  • Preserve constant ordering and parameter indexes.
  • Remove the unused LinkedList import.
  • Make no behavioral changes to serialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant