abcxyz / abc

Apache License 2.0
12 stars 3 forks source link

Speed up `golden-test verify` by 2.5x using concurrency #608

Closed drevell closed 3 months ago

drevell commented 3 months ago

The golden-test verify subcommand is becoming weirdly slow (1.9 seconds when run on the abc repo). Profiling shows that the cause of slowness is mostly dealing with temp files, especially in our diff implementation which creates a copy of the files being diffed.

This PR just adds some coarse-grained concurrency at the top level of the verify command. There's still room for improvement, but this is a decent start.

Ways to improve performance further in the future: