mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-24 00:04:51 +01:00
Use tsl::robin_map and tsl::robin_set
Replace std::unordered_map and std::unordered_set with the above. Better performance profile.
This commit is contained in:
parent
91578edc69
commit
93c289b54f
10 changed files with 68 additions and 27 deletions
26
externals/CMakeLists.txt
vendored
26
externals/CMakeLists.txt
vendored
|
|
@ -2,11 +2,29 @@
|
|||
# simply add the directory to that file as a subdirectory
|
||||
# to have CMake automatically recognize them.
|
||||
|
||||
# catch
|
||||
|
||||
add_library(catch INTERFACE)
|
||||
target_include_directories(catch INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)
|
||||
|
||||
# fmt
|
||||
|
||||
if (NOT DYNARMIC_NO_BUNDLED_FMT)
|
||||
# fmtlib formatting library
|
||||
add_subdirectory(fmt)
|
||||
endif()
|
||||
|
||||
# mp
|
||||
|
||||
add_library(mp INTERFACE)
|
||||
target_include_directories(mp INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/mp/include>)
|
||||
|
||||
# robin-map
|
||||
|
||||
add_subdirectory(robin-map)
|
||||
|
||||
# xbyak
|
||||
|
||||
if (NOT TARGET xbyak)
|
||||
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
|
||||
add_library(xbyak INTERFACE)
|
||||
|
|
@ -14,11 +32,3 @@ if (NOT TARGET xbyak)
|
|||
target_compile_definitions(xbyak INTERFACE XBYAK_NO_OP_NAMES)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(catch INTERFACE)
|
||||
target_include_directories(catch INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/catch>)
|
||||
|
||||
add_library(mp INTERFACE)
|
||||
target_include_directories(mp INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/mp/include>)
|
||||
|
|
|
|||
9
externals/README.md
vendored
9
externals/README.md
vendored
|
|
@ -3,9 +3,10 @@ This repository uses subtrees to manage some of its externals.
|
|||
## Initial setup
|
||||
|
||||
```
|
||||
git remote add externals-fmt https://github.com/fmtlib/fmt.git
|
||||
git remote add externals-mp https://github.com/MerryMage/mp.git
|
||||
git remote add externals-xbyak https://github.com/herumi/xbyak.git
|
||||
git remote add externals-fmt https://github.com/fmtlib/fmt.git --no-tags
|
||||
git remote add externals-mp https://github.com/MerryMage/mp.git --no-tags
|
||||
git remote add externals-robin-map https://github.com/Tessil/robin-map.git --no-tags
|
||||
git remote add externals-xbyak https://github.com/herumi/xbyak.git --no-tags
|
||||
```
|
||||
|
||||
## Updating
|
||||
|
|
@ -15,8 +16,10 @@ Change `<ref>` to refer to the appropriate git reference.
|
|||
```
|
||||
git fetch externals-fmt
|
||||
git fetch externals-mp
|
||||
git fetch externals-robin-map
|
||||
git fetch externals-xbyak
|
||||
git subtree pull --squash --prefix=externals/fmt externals-fmt <ref>
|
||||
git subtree pull --squash --prefix=externals/mp externals-mp <ref>
|
||||
git subtree pull --squash --prefix=externals/robin-map externals-robin-map <ref>
|
||||
git subtree pull --squash --prefix=externals/xbyak externals-xbyak <ref>
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue