On 4/26/06, Marvin Humphrey <[EMAIL PROTECTED]> wrote:
> So the question is, does this assertion hold?
>
>    (byte)((i & 0x7f) | 0x80) == (byte)(i | 0x80)

Yes.

I tested just this out, and java5 -server reports a 15% performance boost for
writeVInt alone,  tested over numbers from 1 to 1000000.  Of course
the overall boost is likely to be very small, It's a very simple
change to make.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to