Skip to content

Commit a5cab32

Browse files
committed
Replace std::unordered_map with boost flat hashmap
1 parent d48f416 commit a5cab32

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 {
@@ -156,7 +158,7 @@ class UniqueInsts
156158
// Mapp all instances to their representative unique instance
157159
std::map<frInst*, frInst*, frBlockObjectComp> inst_to_unique_;
158160
// Maps all instances to the set of instances with the same unique inst
159-
std::unordered_map<frInst*, InstSet*> inst_to_class_;
161+
boost::unordered_flat_map<frInst*, InstSet*> inst_to_class_;
160162
// Maps a unique instance to its pin access index
161163
std::map<frInst*, int, frBlockObjectComp> unique_to_pa_idx_;
162164
// Maps a unique instance to its index in unique_

0 commit comments

Comments
 (0)