my repo name is zoom-tool and the branch that i use is main.
when i run python script in vscode(git bash terminal) or use command like ls. It will be so slow.
and it will print >>> om-toolx1b[36m (main)x1b[0mx0dx0a$ at the end
i try using export GIT_TRACE2_PERF=1
10:47:51.991029 common-main.c:55 | d0 | main | version | | | | | 2.45.2.windows.1 10:47:51.991536 common-main.c:56 | d0 | main | start | | 0.019311 | | | 'C:Program FilesGitmingw64bingit.exe' config --bool core.sparseCheckout 10:47:52.011691 ..._win32_process_info.c:120 | d0 | main | data_json | r0 | 0.039269 | 0.039269 | process | windows/ancestry:["bash.exe","bash.exe","bash.exe","bash.exe","Code.exe","Code.exe"] 10:47:52.013387 repository.c:158 | d0 | main | def_repo | r1 | | | | worktree:'D:/20230327_GUIDO Training/GUIDO 4.1 release/GUIDO_Desktop_Client/projects/zoom-tool' 10:47:52.013387 git.c:466 | d0 | main | cmd_name | | | | | config (config)10:47:52.014786 ..._win32_process_info.c:168 | d0 | main | data_json | r1 | 0.042508 | 0.042508 | process | windows/memory:{"PageFaultCount":7575,"PeakWorkingSetSize":8699904,"PeakPagefileUsage":36352000} ultCount":7575,"PeakWorkingSetSize":8699904,"PeakPagefileUsage":36352000} 10:47:52.014786 git.c:724 | d0 | main | exit | | 0.042648 | | | code:1 10:47:52.014786 trace2/tr2_tgt_perf.c:217 | d0 | main | atexit | | 0.042711 | | | code:1 10:48:00.497456 common-main.c:55 | d0 | main | version | | | | | 2.45.2.windows.110:48:00.497456 common-main.c:56 | d0 | main | start | | 0.016400 | | | 'C:Program FilesGitmingw64bingit.exe' config --bool core.sparseCheckout 10:48:00.517072 ..._win32_process_info.c:120 | d0 | main | data_json | r0 | 0.035830 | 0.035830 | process | windows/ancestry:["bash.exe","bash.exe","bash.exe","bash.exe","Code.exe","Code.exe"] 10:48:00.520068 repository.c:158 | d0 | main | def_repo | r1 | | | | worktree:'D:/20230327_GUIDO Training/GUIDO 4.1 release/GUIDO_Desktop_Client/projects/zoom-tool' 10:48:00.520068 git.c:466 | d0 | main | cmd_name | | | | | config (config)10:48:00.521068 ..._win32_process_info.c:168 | d0 | main | data_json | r1 | 0.039542 | 0.039542 | process | windows/memory:{"PageFaultCount":7579,"PeakWorkingSetSize":8716288,"PeakPagefileUsage":36364288} 10:48:00.521068 git.c:724 | d0 | main | exit | | 0.039784 | | | code:1 10:48:00.521068 trace2/tr2_tgt_perf.c:217 | d0 | main | atexit | | 0.039906 | | | code:1
and it seem that it trace 2 time ???
i try reinstalling git and vscode but it still slow and print the branch name. I try using gitbash outside vscode it workfine(better speed and not print om-toolx1b[36m (main)x1b[0mx0dx0a$)
Cloud blue is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.