The Velocity developers would like to announce the release of Velocity Engine 1.6.3.
This release provides users the ability to revert to the previous #if behavior, which did not call toString() in order to check its status. This results in inconsistent reference treatment, but offers much superior performance in cases where toString() is an expensive operation. To enable this reversion, set the "directive.if.tostring.nullcheck" property to false in your velocity.properties. This should restore performance of the #if directive to previous levels.
For more information, see VELOCITY-731.
Downloads of 1.6.3 are available here. This is a drop-in replacement for Velocity 1.6.2.