mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
rsx: Import robin-hood unordered map which is much faster than std
This commit is contained in:
parent
105205312b
commit
2df7e46cb1
2551
3rdparty/robin_hood/include/robin_hood.h
vendored
Normal file
2551
3rdparty/robin_hood/include/robin_hood.h
vendored
Normal file
File diff suppressed because it is too large
Load diff
19
rpcs3/Emu/RSX/Common/unordered_map.hpp
Normal file
19
rpcs3/Emu/RSX/Common/unordered_map.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef RSX_USE_STD_MAP
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
|
namespace rsx
|
||||||
|
{
|
||||||
|
template<typename T, typename U>
|
||||||
|
using unordered_map = std::unordered_map<T, U>;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#include "3rdparty/robin_hood/include/robin_hood.h"
|
||||||
|
|
||||||
|
namespace rsx
|
||||||
|
{
|
||||||
|
template<typename T, typename U>
|
||||||
|
using unordered_map = ::robin_hood::unordered_map<T, U>;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
Loading…
Reference in a new issue