Repository navigation
Commit 6484eee
perf(shared): cache the git launcher swap with the PATH scan
The swap's file checks ran before every git launch, about 0.28 ms of
synchronous stat calls each on Windows, so a cached resolveSpawnCommand
took ~288 us instead of ~35 us. It now runs on a cache miss and is stored
with the scan, keyed on whether MSYSTEM is set. A Git upgrade that moves the
real binary can fail git for up to the 30 second cache lifetime.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent ea61922 commit 6484eee
2 files changed
Lines changed: 31 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
695 | 719 | | |
696 | 720 | | |
697 | 721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| 768 | + | |
768 | 769 | | |
769 | 770 | | |
770 | 771 | | |
| |||
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
776 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
777 | 782 | | |
778 | 783 | | |
779 | 784 | | |
780 | 785 | | |
781 | | - | |
782 | | - | |
783 | | - | |
| 786 | + | |
784 | 787 | | |
785 | 788 | | |
786 | 789 | | |
| |||
0 commit comments