[ 
https://issues.apache.org/jira/browse/LUCENE-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796111#action_12796111
 ] 

Uwe Schindler commented on LUCENE-2189:
---------------------------------------

Just a comment on the switch:
As far as I know: Java switch statements are very fast if there are few cases 
and these cases are near together and therefore small numbers. I would suggest 
to not switch on the raw ANDed status, but better instead shift the status >>> 
28 (and remove the &) and then only list the raw status values 0..9 in the 
switch statement.

> Simple9 (de)compression
> -----------------------
>
>                 Key: LUCENE-2189
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2189
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: LUCENE-2189a.patch
>
>
> Simple9 is an alternative for VInt.

-- 
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

Reply via email to