Bukkit/Bukkit — pull request #528 by dumptruckman (2012-02-17 22:01:20+00:00)
Title: HUGE performance boost to locToBlock()

Tested with the following code: http://pastebin.com/VUaRrbvN
Results are listed in paste.

Increased operation performance between 3 and 7 fold. (less drastic improvement when iteration count lowered to 1 but still within those bounds.) It also appears that while the casting method's performance remains constant, the floor method's performance increases when dealing with smaller input values but is still dwarfed by the casting method.