Commit 2cad881
committed
Do pretty printing for debug logging only when vebosity is high
This avoids wasting execution time in `irept::pretty` in the case where
verbosity is set to the default level. Before this performance fix, the
pretty printed output was generated and then discarded when the
verbosity was set to the default level.
Comparing this change against the `develop` branch, using a benchmark
has been shown to reduce the runtime from approximately 12 seconds to
approximately 3 seconds for that particular example.1 parent c1336e4 commit 2cad881
File tree
1 file changed
+10
-4
lines changed- src/solvers/smt2_incremental
1 file changed
+10
-4
lines changedLines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
185 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | | - | |
255 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| |||
0 commit comments