summaryrefslogtreecommitdiff
path: root/src/database/database.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-01-06 11:28:04 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-01-06 11:28:04 +0100
commite71c037304e73b85c2d67bc612a45e1e28b5a227 (patch)
tree825f687025b074ed0d820b7fa1428088e1eb5608 /src/database/database.hpp
parentce069545d4b9ac32a094117de75919087a7bc21e (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.hpp2
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;