mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
APVTS: Improve the performance of parameter lookups
This commit is contained in:
parent
efe197de39
commit
2ef4ea53cf
1 changed files with 6 additions and 1 deletions
|
|
@ -543,7 +543,12 @@ private:
|
|||
|
||||
const Identifier valueType { "PARAM" }, valuePropertyID { "value" }, idPropertyID { "id" };
|
||||
|
||||
std::map<String, std::unique_ptr<ParameterAdapter>> adapterTable;
|
||||
struct StringRefLessThan final
|
||||
{
|
||||
bool operator() (StringRef a, StringRef b) const noexcept { return a.text.compare (b.text) < 0; }
|
||||
};
|
||||
|
||||
std::map<StringRef, std::unique_ptr<ParameterAdapter>, StringRefLessThan> adapterTable;
|
||||
|
||||
CriticalSection valueTreeChanging;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue