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

Reader algorithm suboptimal (quadratic) #84

Open
olorin opened this issue Mar 1, 2015 · 0 comments
Open

Reader algorithm suboptimal (quadratic) #84

olorin opened this issue Mar 1, 2015 · 0 comments
Labels

Comments

@olorin
Copy link
Contributor

olorin commented Mar 1, 2015

We're putting fixing this on hold due to other priorities, but it should be documented.

Currently, a batch read will enumerate the buckets it hits O(n) times in the number of points read/read each point O(n^2) times, due to naive filtering out of points which aren't the one being currently read. This can be fixed by only reading each bucket once per batch (either memoize it, or rethink the intermediate datastructure used to accumulate points in a request).

@olorin olorin added the bug label Mar 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant