comparison 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
comparison
equal deleted inserted replaced
508:1b8c748fd7ea 509:6066bde1c126
166 { 166 {
167 Profiler profiler("FFTModel::getColumn", false); 167 Profiler profiler("FFTModel::getColumn", false);
168 168
169 result.clear(); 169 result.clear();
170 size_t h = getHeight(); 170 size_t h = getHeight();
171 result.reserve(h);
171 172
172 float magnitudes[h]; 173 float magnitudes[h];
173 174
174 if (m_server->getMagnitudesAt(x << m_xshift, magnitudes)) { 175 if (m_server->getMagnitudesAt(x << m_xshift, magnitudes)) {
175 176