Gate micro-timers behind verbose flag - #561
Conversation
Avoids clock calls in hot loops when not in verbose mode. Compile with -DABC_NO_TIMERS to turn off inner-loop timers entirely. On i10.aig (b; rs -K 6 -N 2; rf; rw; rs -K 8 -N 2; rf -z; rw -z): verbose 0.103s, default 0.100s (-3.3%), -DABC_NO_TIMERS 0.099s (-3.8%).
|
Maybe a single choke point inside |
|
|
Yes, they are used in comparison and branches. Maybe it's just I see only a few of "comparison/branches" but a great amount of "measurement", so even manually do it I'll prefer modifying the former instead of the latter.
Fair point. |
Avoids clock calls in hot loops when not in verbose mode. Compile with -DABC_NO_TIMERS to turn off inner-loop timers entirely.
On i10.aig (b; rs -K 6 -N 2; rf; rw; rs -K 8 -N 2; rf -z; rw -z): verbose 0.103s, default 0.100s (-3.3%), -DABC_NO_TIMERS 0.099s (-3.8%).