Use pdqsort.

This commit is contained in:
Bartosz Taudul 2018-03-20 19:19:07 +01:00
parent ae55360a6d
commit 6e6addfa81

View File

@ -14,6 +14,7 @@
#include "TracyWorker.hpp"
#include "tracy_flat_hash_map.hpp"
#include "tracy_pdqsort.h"
namespace tracy
{
@ -212,7 +213,7 @@ Worker::Worker( FileRead& f )
for( auto& v : m_data.sourceLocationZones )
{
auto& zones = v.second.zones;
std::sort( zones.begin(), zones.end(), []( const auto& lhs, const auto& rhs ) { return lhs.zone->start < rhs.zone->start; } );
pdqsort_branchless( zones.begin(), zones.end(), []( const auto& lhs, const auto& rhs ) { return lhs.zone->start < rhs.zone->start; } );
}
#endif