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

Windowing to reduce buffer sizes #4

Open
That3Percent opened this issue May 17, 2020 · 0 comments
Open

Windowing to reduce buffer sizes #4

That3Percent opened this issue May 17, 2020 · 0 comments
Labels
Performance Makes it faster

Comments

@That3Percent
Copy link
Owner

Right now, each leaf node in the tree keeps a single buffer and flushes all elements at once. This consumes much more memory than is necessary.

Instead, allocate buffers of fixed sizes (eg: 64k) and flush to a "window" whenever the buffer is full.

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

No branches or pull requests

1 participant