Skip to content
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

Revert "Reduce File I/O under the AnalyzerAssemblyLoader folder (#724… #75761

Open
wants to merge 6 commits into
base: release/dev17.12
Choose a base branch
from

Conversation

Cosifne
Copy link
Member

@Cosifne Cosifne commented Nov 5, 2024

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 5, 2024
@Cosifne
Copy link
Member Author

Cosifne commented Nov 6, 2024

I think I need @ToddGrun and @jaredpar 's review as I don't catch all the details of the original PR.

@Cosifne Cosifne marked this pull request as ready for review November 6, 2024 00:29
@Cosifne Cosifne requested review from a team as code owners November 6, 2024 00:29
@@ -321,7 +295,7 @@ public Assembly LoadFromPath(string originalAnalyzerPath)
AssemblyName? bestName = null;
foreach (var candidateOriginalPath in paths.OrderBy(StringComparer.Ordinal))
{
(AssemblyName? candidateName, string candidateRealPath) = GetAssemblyInfoForPath(candidateOriginalPath);
Copy link
Member Author

@Cosifne Cosifne Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep GetBestPath change from Todd's PR as I see later this method (line 290)

        public string? GetOriginalDependencyLocation(AssemblyName assemblyName)
        {
            CheckIfDisposed();

            return GetBestPath(assemblyName).BestOriginalPath;
        }

is referencing the BestOriginalPath

@ToddGrun
Copy link
Contributor

ToddGrun commented Nov 7, 2024

Have you done a test insertion with this change to see if there are any noticeable perf regressions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants