Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bslatkin opened this issue Aug 8, 2016 · 0 comments
Open

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

bslatkin opened this issue Aug 8, 2016 · 0 comments

Comments

@bslatkin
Copy link
Owner

bslatkin commented Aug 8, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant