-
Notifications
You must be signed in to change notification settings - Fork 28
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
For unseekable files -- build full index by reading the entire file instead #106
base: main
Are you sure you want to change the base?
Conversation
@pauldmccarthy do you know why this is failing? Ideally, even if I'm using an unseekable fileobj, I should be able to read through it once (but just once, since it's unseekable!) and construct the index. |
Hi @epicfaace, apologies for the delay; I've just had a quick poke through the code, and I'm afraid I've come to the conclusion that this would be impossible to support with the current code design. This is because each call to the
So a subsequent call to The
I think it would be possible to adjust the So I'm afraid that this would not be possible without a major refactor/redesign of the contents of the I really don't have time at the moment for this, but may do in the future (as I am increasingly of the opinion that that it could be dramatically simplified). |
This is because it appears that when I try to build an index by reading an unseekable file through the entire way (as opposed to
build_full_index()
), it gives me a ZRAN_READ error. Making this PR to see if this shows up in the tests as well.