comparison data/fft/FFTDataServer.cpp @ 532:59dd6d1bcfb0

* Make Colour3DPlotLayer::paintDense much faster (but still not fast enough)
author Chris Cannam
date Thu, 22 Jan 2009 17:39:04 +0000
parents 6066bde1c126
children beb51f558e9c
comparison
equal deleted inserted replaced
531:38b1ddf18d4b 532:59dd6d1bcfb0
25 #include "base/StorageAdviser.h" 25 #include "base/StorageAdviser.h"
26 #include "base/Exceptions.h" 26 #include "base/Exceptions.h"
27 #include "base/Profiler.h" 27 #include "base/Profiler.h"
28 #include "base/Thread.h" // for debug mutex locker 28 #include "base/Thread.h" // for debug mutex locker
29 29
30 //#define DEBUG_FFT_SERVER 1 30 #define DEBUG_FFT_SERVER 1
31 //#define DEBUG_FFT_SERVER_FILL 1 31 #define DEBUG_FFT_SERVER_FILL 1
32 32
33 #ifdef DEBUG_FFT_SERVER_FILL 33 #ifdef DEBUG_FFT_SERVER_FILL
34 #ifndef DEBUG_FFT_SERVER 34 #ifndef DEBUG_FFT_SERVER
35 #define DEBUG_FFT_SERVER 1 35 #define DEBUG_FFT_SERVER 1
36 #endif 36 #endif
749 m_fillThread->start(); 749 m_fillThread->start();
750 } 750 }
751 751
752 if (int(c) != m_lastUsedCache) { 752 if (int(c) != m_lastUsedCache) {
753 753
754 // std::cerr << "switch from " << m_lastUsedCache << " to " << c << std::endl; 754 #ifdef DEBUG_FFT_SERVER
755 std::cerr << "switch from " << m_lastUsedCache << " to " << c << std::endl;
756 #endif
755 757
756 for (IntQueue::iterator i = m_dormantCaches.begin(); 758 for (IntQueue::iterator i = m_dormantCaches.begin();
757 i != m_dormantCaches.end(); ++i) { 759 i != m_dormantCaches.end(); ++i) {
758 if (*i == int(c)) { 760 if (*i == int(c)) {
759 m_dormantCaches.erase(i); 761 m_dormantCaches.erase(i);