summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-01-04 00:19:31 +1100
committernick_m <mainsbridge@gmail.com>2017-01-04 00:19:31 +1100
commit9e9f99f0048e05323b91aad95425197e11290181 (patch)
tree61a48473480cd6d38a5ba44a9b2880bd25703bfc /gtk2_ardour/ghostregion.h
parent7785389e5015933067ec636623fc91987a81e928 (diff)
note display performance.
use boost::unordered_map as a note store for ghost & midi region views. as per otiginal method, only notes within regoin bounds are stored.
Diffstat (limited to 'gtk2_ardour/ghostregion.h')
-rw-r--r--gtk2_ardour/ghostregion.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h
index 61befbb559..aa4ec8b2f3 100644
--- a/gtk2_ardour/ghostregion.h
+++ b/gtk2_ardour/ghostregion.h
@@ -21,6 +21,7 @@
#define __ardour_gtk_ghost_region_h__
#include <vector>
+#include <boost/unordered_map.hpp>
#include "pbd/signals.h"
namespace ArdourCanvas {
@@ -122,10 +123,10 @@ private:
ArdourCanvas::Rectangle* _tmp_rect;
ArdourCanvas::Polygon* _tmp_poly;
- MidiGhostRegion::GhostEvent* find_event (NoteBase*);
typedef Evoral::Note<Evoral::Beats> NoteType;
+ MidiGhostRegion::GhostEvent* find_event (boost::shared_ptr<NoteType>);
- typedef std::map<boost::shared_ptr<NoteType>, MidiGhostRegion::GhostEvent* > EventList;
+ typedef boost::unordered_map<boost::shared_ptr<NoteType>, MidiGhostRegion::GhostEvent* > EventList;
EventList events;
EventList::iterator _optimization_iterator;
};