minor changes

This commit is contained in:
Nicholas Orlowsky 2023-10-18 14:17:44 -04:00
parent 6c9f7f7c49
commit f1868ceea5
No known key found for this signature in database
GPG key ID: BE7DF0188A405E2B
2 changed files with 11 additions and 2 deletions

View file

@ -40,7 +40,6 @@ private:
void populate_cache() {
populate_cache_dir(file_dir);
populate_cache_dir("./error_pages/");
}
public:

View file

@ -1,3 +1,13 @@
/*
*
* smart_map.cpp
* -------------
* Class that wraps unordered_map. Chooses whether to do O(1) hash lookup
* or O(N) linear lookup based on benchmark. This is done as O(smallN) can
* be faster than O(1)
*
*/
#include <unordered_map>
#include <vector>
#include <string>
@ -6,7 +16,7 @@
#include <algorithm>
#include <bits/stdc++.h>
constexpr int benchmark_loops = 1000000;
constexpr int benchmark_loops = 100;
template <typename KeyType, typename ValueType>
class smart_map {