Use unordered maps for VST3 plugin instances

The better algorithmic time complexity should help when using many (say,
hundreds) of instances of a single VST3 plugin.
This commit is contained in:
Robbert van der Helm
2021-06-11 14:48:28 +02:00
parent dec19dc12a
commit aaf3e7438c
6 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -440,7 +440,7 @@ class Vst3Bridge : public HostBridge {
* will cause all pointers to it to get dropped and the object to be cleaned
* up.
*/
std::map<size_t, InstanceInterfaces> object_instances;
std::unordered_map<size_t, InstanceInterfaces> object_instances;
std::mutex object_instances_mutex;
/**