Performance: store NoteBase UIConfiguration colors between config changes.
authornick_m <mainsbridge@gmail.com>
Sun, 16 Oct 2016 16:19:02 +0000 (03:19 +1100)
committernick_m <mainsbridge@gmail.com>
Sun, 16 Oct 2016 16:19:02 +0000 (03:19 +1100)
commitbf5933add60846818219402ebef0b0b47c7ce5f5
tree9c557fc5e340cab95bf54575cfa9defe73860a5f
parentbcea5fc9d366f478622a13d8f587ebcf0e8d13e9
Performance: store NoteBase UIConfiguration colors between config changes.

Cumulative time in percent while wiggling the tempo lines rapidly.

Before:

MidiRegionview::update_sustained 12.02

 NoteBase::base_color             6.43
 MidiGhostRegion::update_note     3.12
 Note::set                        1.27
 TempoMap::frame_at_quarter_note  0.59
 _dynamic_cast                    0.13

After:

MidiRegionview::update_sustained  10.49

 MidiGhostRegion::update_note      5.57
 Note::set                         2.52
 TempoMap::frame_at_quarter_note   1.13
 NoteBase::base_color              0.17
 _dynamic_cast                     0.17
gtk2_ardour/editor_canvas.cc
gtk2_ardour/note_base.cc
gtk2_ardour/note_base.h