From 07b836236807b6f673db3d5cf0fc5a9c15e1c562 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Thu, 29 Jun 2023 23:09:16 +0200 Subject: [PATCH] Small performance enhancement of cell mapping --- src/db/db/dbCellMapping.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/db/db/dbCellMapping.cc b/src/db/db/dbCellMapping.cc index 1cb4d698d..de115e629 100644 --- a/src/db/db/dbCellMapping.cc +++ b/src/db/db/dbCellMapping.cc @@ -151,10 +151,6 @@ public: } - std::set callers_b; - m_layout_b.cell (cell_b).collect_caller_cells (callers_b, selection_cone_b, -1); - callers_b.insert (cell_b); - m_repr_set = false; std::map::const_iterator r = m_repr.find (cell_b); @@ -164,7 +160,11 @@ public: return false; } } - + + std::set callers_b; + m_layout_b.cell (cell_b).collect_caller_cells (callers_b, selection_cone_b, -1); + callers_b.insert (cell_b); + trans_set_t trans (m_trans); double mag = m_layout_b.dbu () / m_layout_a.dbu ();