From 730ba42cf3fcabed0cd0f3a5bf4c91be0df367bd Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Thu, 18 Nov 2021 12:26:14 +0100 Subject: [PATCH] Dispatcher: Use std::vector as the underlying container for std::stack By default std::stack uses the heavyweight std::deque container for storage, but std::vector is perfectly suitable for our purposes and it has better performance characteristics. --- External/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/External/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h b/External/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h index f9dd026fe..b1b8f6353 100644 --- a/External/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h +++ b/External/FEXCore/Source/Interface/Core/Dispatcher/Dispatcher.h @@ -80,7 +80,7 @@ protected: ArchHelpers::Context::ContextBackup* StoreThreadState(int Signal, void *ucontext); void RestoreThreadState(void *ucontext); - std::stack SignalFrames; + std::stack> SignalFrames; bool SRAEnabled = false; virtual void SpillSRA(void *ucontext, uint32_t IgnoreMask) {}