Skip to content

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

Closed

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.

Activity

  1. added this to the 6.2.12 milestone on Oct 13, 2025
  2. self-assigned this
    on Oct 13, 2025
  3. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    on Oct 13, 2025
  4. added a commit that references this issue on Oct 13, 2025
    ee284f2
  5. github-actions commented on Oct 13, 2025

    @github-actions
    Contributor

    Fixed via ee284f2

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

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