scc icon indicating copy to clipboard operation
scc copied to clipboard

REGRESSION: Performance

Open boyter opened this issue 1 year ago • 2 comments

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 avatar May 29 '24 22:05 boyter

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

boyter avatar May 30 '24 22:05 boyter

Going to create release with part one which gets most of the performance back.

boyter avatar Jul 02 '24 22:07 boyter

Gap mostly closed with the latest release.

boyter avatar Sep 30 '24 05:09 boyter