diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-06 11:28:04 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-06 11:28:04 +0100 |
commit | e71c037304e73b85c2d67bc612a45e1e28b5a227 (patch) | |
tree | 825f687025b074ed0d820b7fa1428088e1eb5608 /src/database/database.hpp | |
parent | ce069545d4b9ac32a094117de75919087a7bc21e (diff) |
Fixed a performance overhead in database creation: it is again a static variable now as it was before
Diffstat (limited to 'src/database/database.hpp')
-rw-r--r-- | src/database/database.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp index de4306bc..8e53e013 100644 --- a/src/database/database.hpp +++ b/src/database/database.hpp @@ -35,7 +35,7 @@ class Database { static const std::string kDeviceVendorAll; // The database consists of separate database entries, stored together in a vector - std::vector<database::DatabaseEntry> database; + static std::vector<database::DatabaseEntry> database; // Database for a special case: Apple CPUs support limited number of threads static const std::vector<database::DatabaseEntry> apple_cpu_fallback; |