NameValueSet and Identifiers


#1

More like a basic C++ question than anything, but in my code I do this a lot:

myNamedValueSet.getWithDefault("MyValue", 999);

I have about 100 named values I use. Is it better to create static identifier objects for my values and pass them to the getWithDefault() method, or does it matter? Is passing strings directly to the NameValueSet method less efficient?


#2

Yes, using static identifiers will be much faster. Whether that matters or not depends on what you're doing.


#3

Thanks.