Commit e2234d7
committed
Optimize updateCurveMenuItems in PathControlPointVisualiser
- Move totalCount calculation outside the loop as it is invariant.
- Replace Where(predicate).Count(predicate) with a single Count(predicate) to reduce allocations.1 parent fa3831d commit e2234d7
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
| 608 | + | |
607 | 609 | | |
608 | 610 | | |
609 | | - | |
610 | | - | |
| 611 | + | |
611 | 612 | | |
612 | 613 | | |
613 | 614 | | |
| |||
0 commit comments