Skip to content

Use PipeReader for more efficient line reading in BufferedReadStream #57

@thomhurst

Description

@thomhurst

BufferedReadStream.ReadLineAsync currently reads byte-by-byte which isn't ideal for performance.

On .NET 6+, we could use System.IO.Pipelines with PipeReader for more efficient buffered line reading. Would need to be careful with chunked transfer encoding though - the PipeReader would need to play nice with how ChunkedReadStream consumes data.

Might need some investigation to get right, but could be a nice perf win for response parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions