Commit 32f6cca
committed
Don't provide a diff notify callback unless necessary
We only seem to care about what ends up being collected in the
`MatchedPathsAggregator` when we've got some file paths to match agains
and either an `OnUnmatchedPath` delegate or instructions to throw
on unmatched paths.
If none of those condition are true we shouldn't be sending a callback
function pointer at all and by not doing so we avoid one marshalled invocation
per delta in the diff.1 parent 45846e2 commit 32f6cca
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | 519 | | |
521 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
522 | 533 | | |
523 | 534 | | |
524 | 535 | | |
525 | 536 | | |
526 | | - | |
| 537 | + | |
527 | 538 | | |
528 | 539 | | |
529 | 540 | | |
| |||
0 commit comments