Skip to content

Add "forEachByte" variant to DataBuffer for efficient traversing #35623

@bclozel

Description

@bclozel

As seen in #34651, iterating over bytes in NettyDataBuffer is not efficient and we should offer a dedicated variant for processing bytes in a DataBuffer without going through bound checks for every byte.

This can be a default method for most implementations and use the optimized variant for Netty ByteBuf.

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