mattgodbolt / zindex

Create an index on a compressed text file
BSD 2-Clause "Simplified" License
622 stars 37 forks source link

Don't save all lineoffsets if sparseLineOffsets is set #50

Open sbendiola opened 1 year ago

sbendiola commented 1 year ago

These changes just save space, but if the flag is passed non-indexed lines can't currently be queried. I save the lines in the access points but wanted to break it up into smaller commits. This feature is similar to sparse except sparse will update the offsetEnd to match the next matching line. I will try to combine them to simplify it a bit