Skip to content

Commit 20834c4

Browse files
committed
optimized Library::platform_type()a bit
1 parent cf93cca commit 20834c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct Library::LibraryData
4949
const auto it = mPlatformTypes.find(name);
5050
return (it != mPlatformTypes.end()) ? &(it->second) : nullptr;
5151
}
52-
std::map<std::string, PlatformType> mPlatformTypes;
52+
std::unordered_map<std::string, PlatformType> mPlatformTypes;
5353
};
5454

5555
class ExportedFunctions {
@@ -137,7 +137,7 @@ struct Library::LibraryData
137137
std::map<std::string, int> mReflection; // invocation of reflection
138138
std::unordered_map<std::string, struct PodType> mPodTypes; // pod types
139139
std::map<std::string, PlatformType> mPlatformTypes; // platform independent typedefs
140-
std::map<std::string, Platform> mPlatforms; // platform dependent typedefs
140+
std::unordered_map<std::string, Platform> mPlatforms; // platform dependent typedefs
141141
std::map<std::pair<std::string,std::string>, TypeCheck> mTypeChecks;
142142
std::unordered_map<std::string, NonOverlappingData> mNonOverlappingData;
143143
std::unordered_set<std::string> mEntrypoints;

0 commit comments

Comments
 (0)