1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Replace parallel STL with PPQSort.

PPQSort is supposedly quite fast: https://github.com/GabTux/PPQSort

More importantly, it does not depend on TBB fuckery, so there's no longer
a need to link with an external library that people may or may not have.

The NO_PARALLEL_STL option is out, as it was provided solely to deal with
TBB being not available. Sequential sorting is still used on emscripten.
This commit is contained in:
Bartosz Taudul
2024-09-26 14:38:11 +02:00
parent d400183483
commit 1c1faeff2d
22 changed files with 42 additions and 71 deletions
+4 -13
View File
@@ -1,19 +1,10 @@
#ifndef __TRACYSORT_HPP__
#define __TRACYSORT_HPP__
#ifndef NO_PARALLEL_SORT
# if !defined __APPLE__ && !defined __EMSCRIPTEN__ && ( ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L )
# if __has_include(<execution>)
# include <algorithm>
# include <execution>
# else
# define NO_PARALLEL_SORT
# endif
# else
# define NO_PARALLEL_SORT
# endif
#ifdef __EMSCRIPTEN__
# include "tracy_pdqsort.h"
#else
# include <ppqsort.h>
#endif
#include "tracy_pdqsort.h"
#endif