# HG changeset patch # User Chris Cannam # Date 1568230564 -3600 # Node ID 5d179afc036608808191bf72145954a1df4f5257 # Parent ac5a82e57d23ba4636e24f197690c21ea15ead35 Generate peak cache directly from model, not from whole-model cache (which turns out to be very slow for large models) diff -r ac5a82e57d23 -r 5d179afc0366 layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Wed Sep 11 11:21:00 2019 +0100 +++ b/layer/SpectrogramLayer.cpp Wed Sep 11 20:36:04 2019 +0100 @@ -1430,7 +1430,7 @@ auto whole = std::make_shared(m_fftModel, 1); m_wholeCache = ModelById::add(whole); - auto peaks = std::make_shared(m_wholeCache, + auto peaks = std::make_shared(m_fftModel, m_peakCacheDivisor); m_peakCache = ModelById::add(peaks);