|
Stacy,
I would think
that there would be, as the first example declares a new instance of MyObject
every iteration, which I believe will allocate memory on every pass, whereas the
second example will not. However, I cannot say for certain that the compiler
will optimize this. Perhaps a simple benchmark would be the best
solution?
Regards, John Ghidiu To change your membership options, refer to: http://www.sys-con.com/java/list.cfm |
- [jdjlist] RE: JVM Overhead Greg Nudelman
- [jdjlist] RE: JVM Overhead John Ghidiu
- [jdjlist] RE: JVM Overhead Spencer W. Thomas
- [jdjlist] RE: JVM Overhead willineuer
- [jdjlist] RE: JVM Overhead stacy . c . may
- [jdjlist] RE: JVM Overhead willineuer
