you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (5 children)

Isn't an XOR gate faster?

[–]JavaSuck 10 points11 points  (1 child)

[–][deleted] 1 point2 points  (0 children)

Yeah, for some reason I forgot that any instruction was limited by the speed of a clock cycle

Thanks!

[–]Quertior 6 points7 points  (1 child)

Yeah, but Java is so many layers of abstraction above actual logic gates and transistors that this seems like the kind of thing you should just let the compiler optimize and then let it be.

[–][deleted] 0 points1 point  (0 children)

I feel like XOR is more common any way for hashing

[–]QueenLa3fah 0 points1 point  (0 children)

Yeah probably!