Comment about performance in bus cache lookups

This commit is contained in:
Robbert van der Helm
2021-09-27 17:45:36 +02:00
parent 9d9eac85ef
commit fc19bf74da
@@ -481,6 +481,9 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
* @see processing_bus_cache
*/
struct BusInfoCache {
// `std::unordered_map` would be better here, but tuples aren't hashable
// out of the box and the difference in performance won't be noticeable
// enough to warrent the effort.
std::map<
std::tuple<Steinberg::Vst::MediaType, Steinberg::Vst::BusDirection>,
int32>