boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.27k stars 249 forks source link

REGRESSION: Performance #472

Open boyter opened 1 month ago

boyter commented 1 month ago

Describe the bug

The latest release which includes the new git logic pulled from gocodewalker has made scc much slower than is used to be.

To Reproduce

Compare version before and after the change.

Expected behavior

Would be nice to have the speed back.

boyter commented 4 weeks ago

First tweak by modifying gocodewalker to walk in parallel and cache some calls. Still more work needed to close the gap, as on a 32 core machine scc counts the linux kernel in ~1 second while tokei is ~700ms.

image