-
Notifications
You must be signed in to change notification settings - Fork 94
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
MultithreadedAnalysis with file hashing and caching #2388
Conversation
Removing hashes computation, marking hash as complete Adding tests, updating FileSystem Fixing condition to create hash
@@ -384,11 +411,12 @@ private async Task<bool> FindFilesAsync(TOptions options, TContext rootContext) | |||
filePath: file) | |||
); | |||
|
|||
await _fileEnumerationChannel.Writer.WriteAsync(_fileContextsCount++); | |||
await _hashChannel.Writer.WriteAsync(_fileContextsCount++); |
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.
@@ -0,0 +1,4 @@ | |||
{ | |||
"AssembliesPath":"..\\..\\bld\\bin\\AnyCPU_Debug\\Test.UnitTests.Sarif.Driver\\netcoreapp3.1", |
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.
@eddynaka This path is incorrect for releases. #Closed
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.29709.97 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.31728.443 |
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.
Question, this is version 2022 right, do we want to upgrade, should we revert this change? #Closed
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.
the other file NuGet.Config maybe also auto changed by VS 2022. my only question is if solution still works for VS 2019 if so we can check it in.
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.
it does not matter if u are using VS2019 or VS2022.
The nuget change is just to show when we open the sln.
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.
This change will enable Caching of the results when
--insert Hashes
is enabled.Current design:
FileEnumerator adds to HashChannel
HashAsync reads from HashChannel and write in AnalysisChannel
AnalysisAsync starts processing.