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 latches (locks) to items in the bufferpool to make them read only during use #2038

Open
joocer opened this issue Sep 30, 2024 · 0 comments

Comments

@joocer
Copy link
Contributor

joocer commented Sep 30, 2024

We currently materialize items we read from the buffer pool to byte arrays so that if the item is removed or moved which in use, we're working on a copy of the data. this materialization is costly.

It may be more efficient to latch the items (either explicitly with an unlatch and/or with a timeout) so we can keep the memoryview and flip a bit rather than materialize to ensure the data isn't updated during use.

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