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

Hybrid Latches #22

Open
connortsui20 opened this issue Aug 13, 2024 · 0 comments
Open

Hybrid Latches #22

connortsui20 opened this issue Aug 13, 2024 · 0 comments

Comments

@connortsui20
Copy link
Owner

connortsui20 commented Aug 13, 2024

Right now, this library is heavily dependent on the tokio implementations of RwLock. This is not necessarily a bad thing, but one of the huge optimizations that is possible (in theory) in this system would be the introduction of Hybrid Latches/Locks, and tokio obviously does not provide this data structure.

See this paper for more information about the hybrid latches, as well as a synchronous implementation of them in Rust here.

I'm not sure what a user-facing API for this would look like, so this is an open question. Ideally, we would abstract away the unsafe, but I'm not sure that is possible. Since we know that the data is always 4kb of bytes there might be a way to fall back to a blocking version without making it unsafe...

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