diff options
author | 2020-09-25 21:44:39 +0200 | |
---|---|---|
committer | 2020-09-25 21:44:54 +0200 | |
commit | 15ea16e1497bcd28168f5c8ba2e53d3a8da8350c (patch) | |
tree | ce7cc28d5d0a6034e60292691c5f97276e11a353 /src/lib/netlist/nl_base.cpp | |
parent | dcc2781365cc194fbbd0383269bc1399f48de18a (diff) |
netlist: minor code cleanup.
* a number of minor fixes leading to an increase of 570% to 588% on
pongf.
* admittedly micro optimization.
* Includes some comments why certain decisions have been taken.
Diffstat (limited to 'src/lib/netlist/nl_base.cpp')
-rw-r--r-- | src/lib/netlist/nl_base.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/netlist/nl_base.cpp b/src/lib/netlist/nl_base.cpp index d0a0e707aaf..10dc7cf635c 100644 --- a/src/lib/netlist/nl_base.cpp +++ b/src/lib/netlist/nl_base.cpp @@ -1029,12 +1029,14 @@ namespace netlist } m_time = top->exec_time(); - auto *const obj(top->object()); + detail::net_t *const obj(top->object()); m_queue.pop(); - if (obj != nullptr) - obj->template update_devs<KEEP_STATS>(); - else + + if (!!(obj == nullptr)) break; + + obj->template update_devs<KEEP_STATS>(); + if (KEEP_STATS) m_perf_out_processed.inc(); } while (true); |