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

Sparse line indexing #45

Open
mattgodbolt opened this issue Oct 25, 2022 · 2 comments
Open

Sparse line indexing #45

mattgodbolt opened this issue Oct 25, 2022 · 2 comments

Comments

@mattgodbolt
Copy link
Owner

Maybe we should store line lumbers in the AccessPoints so we can random access by line number without a full LineIndex (which can be big in some cases).

@sbendiola
Copy link
Contributor

Are you thinking about using the line #s to support binary search in zq?

I had some issues with large indexes that were many GBs for a simple increasing sequence. I now just manually query the min max from lineoffsets and binary search. I did notice #44 and will provide a patch

@mattgodbolt
Copy link
Owner Author

that was the thought yeah. Mainly..whatever though :) I resurrected zindex for a local set of presentations on "how gzip works" but I don't have a (current) use case for it. I may need some random access to binary files, but...really you're more likely to know what you want! Pretty much anything you want just send me a PR :)

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

No branches or pull requests

2 participants