Use std::unordered_map for CacheTagArray class #225
Labels
2
Small features, tests coverage, simple laboratory works
code
Enhances infrastructure or refines, Requires almost no knowledge in CPU microarchitecture.
S2 — Caches
To solve the issue, you NEED knowledge about caches. OOO hierarchy etc.
Milestone
Currently the only way to find a value in CacheTagArray is iterating the std::vector from begin to end, so we do O(ways) here. If we used std::unordered_map, we would do this in O(1).
The text was updated successfully, but these errors were encountered: