diff data/fft/FFTDataServer.cpp @ 509:6066bde1c126

* Cut back on the locking and general workload in FFTDataServer::getMagnitudes(). This stuff is far too complicated!
author Chris Cannam
date Mon, 08 Dec 2008 11:15:13 +0000
parents bd7c46636bd0
children 59dd6d1bcfb0
line wrap: on
line diff
--- a/data/fft/FFTDataServer.cpp	Fri Dec 05 16:18:04 2008 +0000
+++ b/data/fft/FFTDataServer.cpp	Mon Dec 08 11:15:13 2008 +0000
@@ -916,9 +916,8 @@
         fillColumn(x, true);
     }
 
-    for (size_t i = 0; i < count; ++i) {
-        values[i] = cache->getMagnitudeAt(col, i * step + minbin);
-    }
+    cache->getMagnitudesAt(col, values, minbin, count, step);
+
     return true;
 }