Skip to content

LZ4Stream.ReadAsync needs a "low latency" mode #47

@judilsteve

Description

@judilsteve

As per title. LZ4Stream.ReadAsync appears to read data from the input stream until either the input stream ends or there is enough uncompressed output to completely fill the provided buffer. This may be optimal for throughput in many scenarios, but it is problematic in others (e.g. network scenarios), where the caller may want to immediately read any data that can be decompressed, even if there would not be enough data to fill the provided buffer.

The current behaviour is analagous to a postal service that only delivers your letters once they have gathered enough to fill your mailbox: It may be more efficient for the postal service to do it this way, but you run the risk of your bills becoming overdue before you even receive them.

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