-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
small optimization for fsfinder #136
base: main
Are you sure you want to change the base?
Conversation
…elds because of optimization (arrays were used only to check the occurrence of an element)
Output of the benchmark run
and here's the benchmark against the main branch finder:
Some pretty clear improvements. Thanks @SkobelkinYaroslav ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! - one comment on commented code
@@ -168,9 +168,9 @@ func Test_FileSystemFinderMultipleFinder(t *testing.T) { | |||
func Test_FileSystemFinderDuplicateFiles(t *testing.T) { | |||
fsFinder := FileSystemFinderInit( | |||
WithPathRoots( | |||
"../../test/fixtures/subdir/good.json", | |||
//"../../test/fixtures/subdir/good.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend removing the commented code if it is no longer needed
some optimization and added benchmark to test it