On Tue, Jan 1, 2013 at 11:17 AM, Sébastien Brisard < sebastien.bris...@m4x.org> wrote:
> > Please mention that when I first mentioned in-place operations, I didn't > have speed in mind, but really memory. > > I think we would not gain much speedwise, as Java has become very good at > allocating objects (this would be true of large problems, where typically a > few big objects would be allocated at each iteration. The conclusion would > probably be different with many small objects to be allocated at each > iteration). > Allocation is not the problem. The problem is memory bandwidth due to the copies that are a side effect of the allocation.