gartnera / git-restore-mtime

Sets the modified time of files and directories to the commit time from git
0 stars 0 forks source link

`DiffTree` is very slow #1

Open gartnera opened 2 months ago

gartnera commented 2 months ago

CPU profile of mpv repo

We spend the vast majority of our time in the DiffTree call.

image

cpu.speedscope.json

gartnera commented 2 months ago

Still slow after #2

image

gartnera commented 1 month ago

Speed is pretty reasonable after #3, but still slower than the python version which just parses the git log output.

image