mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 21:38:01 +03:00
rsx: Import robin-hood unordered map which is much faster than std
This commit is contained in:
parent
105205312b
commit
2df7e46cb1
2 changed files with 2570 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue