Commit 56aaf0c
committed
Avoid repeated computation of guardt::operator-=
Each iteration of the loop yields the same expression. Avoiding repeated
construction enables trivial sharing rather than relying on merge_irepst for
a reduced memory footprint, and reduces the computational cost as
guardt::operator-= is non-trivial.1 parent 320722f commit 56aaf0c
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| |||
417 | 427 | | |
418 | 428 | | |
419 | 429 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| |||
0 commit comments