Skip to content

Optimize performance of extension functions defined on Source when called on a Buffer #342

@fzhinkin

Description

@fzhinkin

Some extension functions defined on a Source (like readString or readCodePointValue) prefetch data into the source's buffer and then delegate further processing to buffer-specific functions. When invoked on a Buffer, these functions still do all these unnecessary prefetching actions. Instead, such calls should be delegated to a Buffer directly.

Potentially affected functions are:

  • Source.readCodePointValue()
  • Source.readString()
  • Source.readHexadecimalUnsignedLong()
  • Source.readDecimalLong()
  • Source.indexOf

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions