diff options
author | Runitai Linden <davep@lindenlab.com> | 2021-09-14 20:18:58 -0500 |
---|---|---|
committer | Dave Houlton <euclid@lindenlab.com> | 2021-09-15 13:53:00 -0600 |
commit | 84da92663aad221db19927de26922417e7cb45c6 (patch) | |
tree | 93c86308ade8947c0b60a808fa27df2529934a94 /indra/llcommon | |
parent | fc612fd8a0057daa7436c8d2285ccee0c634378a (diff) |
SL-15961 Convert LLMeshRepository::mSkinMap into unordered_map and reduce number of per-frame lookups to said map.
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/lluuid.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llcommon/lluuid.h b/indra/llcommon/lluuid.h index fe7482ba29..86a396ab06 100644 --- a/indra/llcommon/lluuid.h +++ b/indra/llcommon/lluuid.h @@ -184,6 +184,17 @@ struct boost::hash<LLUUID> } }; +// Adapt boost hash to std hash +namespace std +{ + template<> struct hash<LLUUID> + { + std::size_t operator()(LLUUID const& s) const noexcept + { + return boost::hash<LLUUID>()(s); + } + }; +} #endif |