But the question that is raised by the performance numbers is whether the
compiling is optimizing away this storage overhead.

These numbers are exactly why I *assumed* we would need primitive
implementations, but the speed numbers make me question that assumption.  It
used to be true, but may not be any more.

On 3/14/08 8:15 AM, "Jason Rennie" <[EMAIL PROTECTED]> wrote:

> Btw, I yesterday learned how to determine the size of Java Objects and was
> quite surprised by the result:
> 
> http://javaquirks.blogspot.com/
> 
> Marginal storage cost of Integer/Float (16-24 bytes) is 4-6x larger than
> int/float (4 bytes).  Double is 2-3x larger than double.  Probably worth
> sticking to primitives if possible...
> 
> Jason

Reply via email to