-
-
Notifications
You must be signed in to change notification settings - Fork 341
freelist control #1603
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
freelist control #1603
Conversation
This is done by three new `Repository` methods: * `empty_reusable_buffer()` - hook into the free-list yourself. * `set_freelist()` - enable or initialize the free-list. * `without_freelist()` - a builder to disable the freelist from the start.
/// Freelist configuration | ||
/// | ||
/// The free-list is an internal and 'transparent' mechanism for obtaining and re-using memory buffers when | ||
/// reading objects. That way, trashing is avoided as buffers are re-used and re-written. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// reading objects. That way, trashing is avoided as buffers are re-used and re-written. | |
/// reading objects. That way, thrashing is avoided as buffers are re-used and re-written. |
is this a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, it wasn't a typo, but I realised now that it's not trashing
at all :D.
/// They are welcome to take out the data themselves, for instance when the object is detached, to avoid | ||
/// it to be reclaimed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// They are welcome to take out the data themselves, for instance when the object is detached, to avoid | |
/// it to be reclaimed. | |
/// They are welcome to take out the data themselves, for instance when the object is detached, to avoid | |
/// it being reclaimed. |
is this correct? I think otherwise the sentence is wonky
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! Would you be able to raise a new PR with the changes? Otherwise I can probably U-Boot the changes into the next PR.
Fixes #1599 .
Tasks