XML Feeds

.

[java-dev] Re: Re: Re: Crash in JitterMatrix.copyMatrixToArray() ?

Peter Castine pcastine at gmx.net
Thu Feb 7 02:22:54 MST 2008


At my end the good news is that the copyVectorToArray() version ran happily overnight and still has a constant memory footprint. It's running and performance is fine.

I had originally matched the matrixbuf to the size of the incoming matrix by creating a new int[dim[0]*dim[1]*planecount] on each call to jit_matrix. But I found that approach takes a significant performance hit because GC gets called far too often. I also think that had an issue with cumulative memory fragmentation, but I'm not sure. 

Maintaining a single array large enough to hold the largest of the eight incoming matrices seemed to make a lot of sense. At least it works now. I hope.

--
----
Peter Castine
Next Concert: Fri. 8 Feb, 2008
Oscar Peterson Concert Hall, Concordia University, Montréal, QC, CA
"The Door: Theme, Lines, Canon"
--please check with venue for time



More information about the java-dev mailing list