For unseekable files -- build full index by reading the entire file instead#106
For unseekable files -- build full index by reading the entire file instead#106epicfaace wants to merge 3 commits intopauldmccarthy:mainfrom
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.