opteryx icon indicating copy to clipboard operation
opteryx copied to clipboard

✨ add latches (locks) to items in the bufferpool to make them read only during use

Open joocer opened this issue 1 year ago • 0 comments
trafficstars

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.

joocer avatar Sep 30 '24 15:09 joocer