Am 14.10.2011 10:47, schrieb Ulf Zibis:
My new guess for the reason:
The unfolding of the bytes to int to serve the isNotContinuation /
isMalformedxx methods.
So those methods should be coded in byte logic too.
+ use the "bx <= (byte)abc" logic instead "shift" or "(bx & abc) != def".
-Ulf
Am 30.09.2011 22:46, schrieb Xueming Shen:
I believe we changed from (b1 < xyz) to (b1 >> x) == -2 back to 2009(?) because
the benchmark shows the "shift" version is slightly faster. Do you have any
number
shows any difference now. My non-scientific benchmark still suggests the "shift"
type is f
Am 13.10.2011 21:13, schrieb Xueming Shen:
On 10/13/2011 09:55 AM, Ulf Zibis wrote:
Am 11.10.2011 19:49, schrieb Xueming Shen:
I don't know which one is better, I did a run on
private static boolean op1(int b) {
return (b >> 6) != -2;
}
private static boolean op2(int b) {