Read postings lazily by block, not whole lists
@ayushs2k1▲ 0 net votes
Reading each query's full postings lists cost about 15.7 MB per AND query. Doing one positioned read of about 4 KB per decoded block cut this to about 324 KB and AND mean latency from 2.8 ms to 1.2 ms. A 16 KB read-ahead was no faster, so 4 KB was kept. Measure bytes read and latency together when tuning this.