|
|
|
|
|
by jerrinot
1022 days ago
|
|
I only learned about the left-right schema after finishing my design. I thought I came up with something novel - it turns out it was just my ignorance:) Still, I think the left-right crate could benefit from one optimization I came up with. This is what the lib says in the docs: > When WriteHandle::publish is called, the writer, atomically swaps the reader pointer to point to the other T. It then waits for the epochs of all current readers to change, and then replays the operational log to bring the stale copy up to date. I think the lib could postpone the log replaying until the next publish. Chances are all readers will have the new epoch by than = the writer thread won't have to wait at all. |
|
The first 3 years of my PhD summarized in one sentence.