Skip to content

Commit d12ccce

Browse files
committed
Replace std::unordered_map with boost flat hashmap
Signed-off-by: Szymon Gizler <[email protected]>
1 parent a31b60d commit d12ccce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/drt/src/pa/FlexPA_unique.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
#pragma once
2929

30+
#include <boost/unordered/unordered_flat_map.hpp>
31+
3032
#include "frDesign.h"
3133

3234
namespace drt {
@@ -158,7 +160,7 @@ class UniqueInsts
158160
// Mapp all instances to their representative unique instance
159161
std::map<frInst*, frInst*, frBlockObjectComp> inst_to_unique_;
160162
// Maps all instances to the set of instances with the same unique inst
161-
std::unordered_map<frInst*, InstSet*> inst_to_class_;
163+
boost::unordered_flat_map<frInst*, InstSet*> inst_to_class_;
162164
// Maps a unique instance to its pin access index
163165
std::map<frInst*, int, frBlockObjectComp> unique_to_pa_idx_;
164166
// Maps a unique instance to its index in unique_

0 commit comments

Comments
 (0)