From a5cab32dd532b20ff654c34cf5562515b39cb63a Mon Sep 17 00:00:00 2001 From: Szymon Gizler Date: Fri, 25 Oct 2024 19:24:49 +0200 Subject: [PATCH] Replace std::unordered_map with boost flat hashmap --- src/drt/src/pa/FlexPA_unique.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drt/src/pa/FlexPA_unique.h b/src/drt/src/pa/FlexPA_unique.h index af48c05b3cb..2065d564326 100644 --- a/src/drt/src/pa/FlexPA_unique.h +++ b/src/drt/src/pa/FlexPA_unique.h @@ -27,6 +27,8 @@ #pragma once +#include + #include "frDesign.h" namespace drt { @@ -156,7 +158,7 @@ class UniqueInsts // Mapp all instances to their representative unique instance std::map inst_to_unique_; // Maps all instances to the set of instances with the same unique inst - std::unordered_map inst_to_class_; + boost::unordered_flat_map inst_to_class_; // Maps a unique instance to its pin access index std::map unique_to_pa_idx_; // Maps a unique instance to its index in unique_