> + if (MDValueToValIDMap.count(MD)) { > + unsigned Idx = MDValueToValIDMap[MD]; Hi, There are many cases like this where we are doing more hash lookups than needed. In this case you can use find and compare with end(). Cheers, Rafael