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

Fix slow graph binlog #226

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Conversation

TheAngryByrd
Copy link
Member

No description provided.

@@ -1224,7 +1214,7 @@ type WorkspaceLoaderViaProjectGraph private (toolsPath, ?globalProperties: (stri

let bm = BuildManager.DefaultBuildManager
use sw = new StringWriter()
let loggers = ProjectLoader.createLoggers allKnownNames binaryLogs sw
let loggers = ProjectLoader.createLoggers "graph-build" binaryLogs sw
Copy link
Member Author

Choose a reason for hiding this comment

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

Previously we'd create a binlog for each project that we were design time building. This would cause excessive slowdowns.

@@ -532,7 +532,7 @@ module ProjectLoader =
let pi = project.CreateProjectInstance()
getTfm pi isLegacyFrameworkProj

let createLoggers (paths: string seq) (binaryLogs: BinaryLogGeneration) (sw: StringWriter) =
let createLoggers (path: string) (binaryLogs: BinaryLogGeneration) (sw: StringWriter) =
Copy link
Member Author

Choose a reason for hiding this comment

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

Since both call sites were only passing in a single path I changed this. Though it is public so would be a breaking change if someone was using it.

@TheAngryByrd TheAngryByrd merged commit 8ba86c1 into ionide:main Feb 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants