[ https://issues.apache.org/jira/browse/LUCENE-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804228#action_12804228 ]
Paul Elschot commented on LUCENE-2232: -------------------------------------- >From at LUCENE-1410, yesterday 23 Jan 2010: {quote} (Zhang, 2008) The poor speed of variable- byte on position data is primarily due to the fact that position values are larger and more often require 2 bytes under variable-byte; this case tends to be much slower due to a branch mispredict. {quote} So using VShort (1 bit as in VByte and 15 bits data) should speed up the proximity decoding when compared to the current VByte encoding (1 bit flag, 7 bits data). The disadvantage is a larger size of the proximity file. When only small document fields are present, the proximity file would double in size. For larger documents fields about 5-6% size increase is expected, see for example the prx statistics posted at LUCENE-1410. > Use VShort to encode positions > ------------------------------ > > Key: LUCENE-2232 > URL: https://issues.apache.org/jira/browse/LUCENE-2232 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Paul Elschot > > 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: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org