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

XADD q can lazy allocate pooled chunks #279

Open
franz1981 opened this issue Dec 27, 2019 · 0 comments
Open

XADD q can lazy allocate pooled chunks #279

franz1981 opened this issue Dec 27, 2019 · 0 comments

Comments

@franz1981
Copy link
Collaborator

franz1981 commented Dec 27, 2019

Xadd qs could lazy allocate the pooled chunk, on demand, instead of eagerly allocate them.
This could be implemented using a plain int field to count the already pooled chunks: this plain int field could be used while appending new chunks, given that is a single writer code.

The interesting thing is that it could save all the configured allocations to ever happen, depending on the load.

In addition it could allow to reuse the max number of allocated chunks (under the max load) by targeting an unbounded number of pooled chunks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants