gsdx:linux: use unordered hash

It seems a bit faster on 'perf' tool
This commit is contained in:
Gregory Hainaut 2015-08-05 22:32:02 +02:00
parent 921b22ac31
commit 39ce8835f7
1 changed files with 11 additions and 20 deletions

View File

@ -115,6 +115,17 @@ using namespace std;
#include <memory>
#if _MSC_VER >= 1800 || !defined(_WINDOWS)
#include <unordered_map>
#include <unordered_set>
#define hash_map unordered_map
#define hash_set unordered_set
#else
#include <hash_map>
#include <hash_set>
using namespace stdext;
#endif
#ifdef _WINDOWS
// Note use GL/glcorearb.h on the future
@ -123,18 +134,6 @@ using namespace std;
#include <GL/wglext.h>
#include "GLLoader.h"
#if _MSC_VER >= 1800
#include <unordered_map>
#include <unordered_set>
#define hash_map unordered_map
#define hash_set unordered_set
#else
#include <hash_map>
#include <hash_set>
using namespace stdext;
#endif
// hashing algoritms at: http://www.cris.com/~Ttwang/tech/inthash.htm
// default hash_compare does ldiv and other crazy stuff to reduce speed
@ -193,19 +192,11 @@ using namespace std;
#else
#define hash_map map
#define hash_set set
//#include <ext/hash_map>
//#include <ext/hash_set>
// Note use GL/glcorearb.h on the future
#include <GL/gl.h>
#include <GL/glext.h>
#include "GLLoader.h"
//using namespace __gnu_cxx;
#define DIRECTORY_SEPARATOR '/'
#endif