Repository navigation
Conversation
PforDelta compression for positions
PforDelta compression for positionsPForDelta compression for positions
The compression rate is better than simdcomp and FastPFOR while matching the encode/decode performance. Also, it contains an infused delta computation.
94e3e2c to
c989988
Compare
decodeRawSoA decoded the `.pos` blob entry-by-entry. Read the whole blob once with `readBigStrict` and de-interleave from the buffer instead.
|
Workflow [PR], commit [3066a49] Summary: ❌
AI ReviewSummaryThis PR adds a Findings
Tests
Final VerdictStatus: |
Make PForDelta decode fail-closed on malformed text-index positions.
|
Updating the branch to fix the |
9bfe47d to
20b71a4
Compare
20b71a4 to
8fa51f1
Compare
The upper bound alone was insufficient: count also comes from on-disk metadata, so a corrupt part with position_cardinality == count == UINT32_MAX and payload_bytes == 1 passed the guard and then scratch.doc/group/bitmap.resize(count) attempted a ~51GB allocation before lane decode reported corruption. Require payload_bytes >= 3 * ceil(count / BLOCK) (each of three lanes needs >= 1 byte per block) before any resize; mirror it in decodePforSoA.
…WithPositions` Since `support_phrase_search` is experimental, the `WithPositions` header version is redefined in place instead of adding a new version: it now always persists the positions codec byte. Positional parts written by earlier experimental builds must be rebuilt.
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 773/841 (91.91%) · Uncovered code |
A follow-up of #103172 to compression positions using an integrated
PforDeltacompression.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Introduce new
positions_encodingparameter to compression positions further. Supported values arenoneorpfor.Documentation entry for user-facing changes