From c50b56f868ad909432aa758dd734c421fd6b3497 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 4 Jan 2026 17:10:08 +0100 Subject: [PATCH] Shortcutting evalute_nets if there is nothing to do. --- src/db/db/dbLayoutToNetlist.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/db/db/dbLayoutToNetlist.cc b/src/db/db/dbLayoutToNetlist.cc index a83234e2b..52637e829 100644 --- a/src/db/db/dbLayoutToNetlist.cc +++ b/src/db/db/dbLayoutToNetlist.cc @@ -1831,7 +1831,11 @@ LayoutToNetlist::get_shapes_of_net (db::cell_index_type ci, size_t cid, const st } } - if (npoly >= max_polygons) { + if (n == 0) { + + // nothing to do ... + + } else if (npoly >= max_polygons) { db::Box bbox;