Skip to content

Commit

Permalink
Replace std::unordered_map with boost flat hashmap
Browse files Browse the repository at this point in the history
  • Loading branch information
sgizler committed Nov 22, 2024
1 parent d48f416 commit a5cab32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/drt/src/pa/FlexPA_unique.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#pragma once

#include <boost/unordered/unordered_flat_map.hpp>

#include "frDesign.h"

namespace drt {
Expand Down Expand Up @@ -156,7 +158,7 @@ class UniqueInsts
// Mapp all instances to their representative unique instance
std::map<frInst*, frInst*, frBlockObjectComp> inst_to_unique_;
// Maps all instances to the set of instances with the same unique inst
std::unordered_map<frInst*, InstSet*> inst_to_class_;
boost::unordered_flat_map<frInst*, InstSet*> inst_to_class_;
// Maps a unique instance to its pin access index
std::map<frInst*, int, frBlockObjectComp> unique_to_pa_idx_;
// Maps a unique instance to its index in unique_
Expand Down

0 comments on commit a5cab32

Please sign in to comment.