From ec37f59c149ae6f8f5d6c071842aae95a98c24c4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 12 Feb 2019 18:45:51 +0100 Subject: [PATCH] Replace manual comparison with memcmp. --- server/TracyVarArray.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/TracyVarArray.hpp b/server/TracyVarArray.hpp index 938a9b16..d63a9772 100644 --- a/server/TracyVarArray.hpp +++ b/server/TracyVarArray.hpp @@ -2,6 +2,7 @@ #define __TRACYVARARRAY_HPP__ #include +#include #include "../common/TracyForceInline.hpp" #include "tracy_flat_hash_map.hpp" @@ -60,12 +61,7 @@ template bool Compare( const VarArray& lhs, const VarArray& rhs ) { if( lhs.size() != rhs.size() || lhs.get_hash() != rhs.get_hash() ) return false; - const auto sz = lhs.size(); - for( uint8_t i=0; i