Skip to content

Add a try_reserve_read() method to avoid extra copies on read #2

Open

Description

@bslatkin

Similar idea to #1 except for readers. The idea is you'd quickly get a handle on a slot. Then you could have a ctypes.Structure map to it using from_buffer(). You'd read out everything you need quickly, and then call read_finished() on the slot when you were done.

Other readers would be able to read the same slot and do the same thing. The writer wouldn't be able to overwrite that slot until all readers had called read_finished() on it.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions