diff data/model/FFTModel.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 83eae5239db6
children 55ad231c9db7
line wrap: on
line diff
--- a/data/model/FFTModel.cpp	Fri Dec 05 16:18:04 2008 +0000
+++ b/data/model/FFTModel.cpp	Mon Dec 08 11:15:13 2008 +0000
@@ -168,6 +168,7 @@
 
     result.clear();
     size_t h = getHeight();
+    result.reserve(h);
 
     float magnitudes[h];