You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Right now, the Page struct uses a tokioRwLock to protect the inner Frame's data. This should be fine for now, but to maximize the parallelism, we will probably want to implement the hybrid latch described in this paper by the Germans.
There is already an implementation in Rust of a hybrid lock as a crate, but we will want to somehow make an asynchronous version of the lock. I don't really know what the semantics of it would be, but it would probably be something along the lines of the optimistic read being synchronous and the pessimistic reads and writes be asynchronous? Though that would mean the entire interface (including the optimistic read) would have to be asynchronous. Still not sure of all of the implications of making a lock async, and I think I need to go through the actual asynchronous RwLock and Mutex implementations in tokio to get a better understanding.
The text was updated successfully, but these errors were encountered:
Right now, the
Page
struct uses atokio
RwLock
to protect the innerFrame
's data. This should be fine for now, but to maximize the parallelism, we will probably want to implement the hybrid latch described in this paper by the Germans.There is already an implementation in Rust of a hybrid lock as a crate, but we will want to somehow make an asynchronous version of the lock. I don't really know what the semantics of it would be, but it would probably be something along the lines of the optimistic read being synchronous and the pessimistic reads and writes be asynchronous? Though that would mean the entire interface (including the optimistic read) would have to be asynchronous. Still not sure of all of the implications of making a lock
async
, and I think I need to go through the actual asynchronousRwLock
andMutex
implementations intokio
to get a better understanding.The text was updated successfully, but these errors were encountered: