Bukkit/CraftBukkit — comment on commit 7deb43b31170d0e7a2325dd4aa68121a74df52aa
File:  line 0
By Afforess:

>C/C++ guys would easily use powers of two with a simple bitwise-and,sub,etc operators.

I've noticed that the Java Hotspot JVM optimizes anything it can anyways. Did a test with a random number and & 2 vs % 2 for evens, and % 2 was actually faster by a tiny margin... Surprised me.

>minecraft is damn suprising: what code one should write to make a server (and client, too) so incredibly hungry in CPU and MEM?.

Probably because a lot of the waste is in creating/destroying objects, and an inherent single threaded design. It's not a language problem, it's a design problem.

Additionally, the mineserver team have expressed contempt for bukkit - they don't even seem to want outside help.