lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-2232) Use VShort to encode positions
Date Mon, 01 Feb 2010 18:50:19 GMT


Yonik Seeley commented on LUCENE-2232:

bq. Has it been tried to unroll getVInt()? Unrolling getVInt into 5 explicit getByte()'s has
the advantage that the later conditional jumps are easier to predict.

IIRC, there was a JIRA issue in the past that tried this.  It showed a speedup in micro-benchmarks
but a slowdown when it was actually used in lucene for something like termdocs.

> Use VShort to encode positions
> ------------------------------
>                 Key: LUCENE-2232
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Paul Elschot
>         Attachments: LUCENE-2232-nonbackwards.patch, LUCENE-2232-nonbackwards.patch
> Improve decoding speed for typical case of two bytes for a delta position at the cost
of increasing the size of the proximity file.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message