Hello,

In:

   public abstract class IndexOutput
   public void writeVInt(int i)
   writeByte((byte)((i & 0x7f) | 0x80));

I thought

  (byte)((i & 0x7f) | 0x80) == (byte)(i | 0x80)

As (byte) is able to truncate the last byte for us already, no need of
(& 0x7f). If so, we may change that line to

   writeByte((byte)(i | 0x80));

and may speed up a little bit. Correct me if (i & 0x7f) is necessary.
Thank you.

-- 
Best regards,
 Charlie


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

Reply via email to