From 2c6188b73fe93f7d895f67bd587f9539cc882c2c Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 15 Jul 2014 20:55:52 -0500 Subject: [PATCH] Switch the GameDatabase from using a pxDictionary to a std::unordered_map. Both implementations are about the same, which is hard to measure since we are limited in speed due to the hashing function. Both implementations averaged ~220ms to load the full game database on my workstation. --- pcsx2/GameDatabase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GameDatabase.h b/pcsx2/GameDatabase.h index e5695ce1d1..3fd510287d 100644 --- a/pcsx2/GameDatabase.h +++ b/pcsx2/GameDatabase.h @@ -18,8 +18,8 @@ //#include "Common.h" #include "AppConfig.h" #include "Utilities/HashMap.h" -#include "Utilities/SafeArray.h" +#include #include struct key_pair; @@ -176,7 +176,7 @@ public: virtual void updateGame(const Game_Data& game)=0; }; -typedef pxDictionary GameDataHash; +typedef std::unordered_map GameDataHash; // -------------------------------------------------------------------------------------- // BaseGameDatabaseImpl