Re:JDK 7 Features
by fauigerzigerk on Monday September 20, 2010 @09:33AM
(#1708707)
BigDecimal uses 10 times as much memory as an int but I didn't intend to properly model currency amounts anyway.
Any sane developer will track money in lowest units - eg cents. Rather than Dollars.
I know performance is an issue, but you can always find non-hackish solutions: like a memory upgrade from management, because you're writing safe, clean code :-)