13
0
livetrax/libs
Tim Mayberry 689862cafb Decouple Session from MidiPatchManager and reduce parsing of midnam xml files
The MidiPatchManager only requires a reference to the session to get the path
to the Session midnam directory so change it so that the path is passed to
MidiPatchManager::add_search_path on Session construction and removed on
Session Destruction. This will also make it easier to test and reduce compile
times etc.

For the common case where the Session doesn't have a Session specific midnam
patch files directory(for instance a new session) it won't cause a refresh and
reparsing of all the midnam files. This saves about 2 seconds to load a Session
on my machine(fast machine with SSD), or about half the time spent in the
Session constructor for a new session.

There is still going to be that initial cost of parsing the midnam files when
the first session is created after starting Ardour. Options to remove that
would be to parse the files asynchronously and or use a faster xml
parser(eventually), neither of which seem worth doing at this stage.

This change will cause a performance regression for the uncommon case where a
Session with Session specific midnam files is unloaded and then another Session
with Session specific midnam files is loaded as it will cause the common midnam
files in midi_patch_path to be parsed twice(unload and load).
2015-10-22 11:51:03 -04:00
..
appleutility fix OS X system detection (amend 66704ee) 2015-10-18 23:19:52 +02:00
ardour Decouple Session from MidiPatchManager and reduce parsing of midnam xml files 2015-10-22 11:51:03 -04:00
ardouralsautil spelling error fixes (notably "overriden" => "overidden") from IOhannes m zmölnig 2015-09-11 09:23:43 -04:00
audiographer use quotes for in-tree pbd/glib wrapper include 2015-10-05 22:15:18 +02:00
backends coreaudio: reset freewheeling after export 2015-10-10 02:42:13 +02:00
canvas remove invalid assertion - #6634 2015-10-22 12:20:42 +02:00
clearlooks-newer NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
clearlooks-older NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
evoral Update ContrilList debug output. 2015-10-20 00:53:29 +11:00
fst
gtkmm2ext remove cruft 2015-10-20 15:49:59 +02:00
libltc update libltc to v1.1.4-4-gb034a23 (endianess issue) 2015-09-09 16:54:26 +02:00
midi++2 NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
panners remove unused fstream includes 2015-10-05 22:15:18 +02:00
pbd Add PBD::Searchpath::contains method to check if a Searchpath contains a path 2015-10-22 11:51:03 -04:00
plugins/reasonablesynth.lv2
ptformat NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
qm-dsp fix Vamp Onset Detector. 2015-10-08 16:18:39 +02:00
surfaces Make sure Mackie Control view modes start with route 1 except Mixer mode goes to last position. 2015-10-20 19:31:04 -07:00
timecode NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
vamp-plugins fix Vamp Onset Detector. 2015-10-08 16:18:39 +02:00
vfork