Skip to content

Make modules graph loading async #7672

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jun 17, 2024

We should allow making packageGraphLoader async, but this infects a most of the build system code, including the plugin delegate code.

This unblocks the conversion of PubGrub code to Structured Concurrency.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov changed the title Allow module graph loading to become async Allow module graph loading to become async Jun 17, 2024
@MaxDesiatov MaxDesiatov added the modules graph Modules dependency resolution label Jun 17, 2024
@neonichu
Copy link
Contributor

Assuming this isn't the end state and loading the graph will still be optional? Otherwise, this will affect incremental build perf quite a bit.

@MaxDesiatov MaxDesiatov force-pushed the maxd/early-graph-memoization branch from c1ddf0c to 840979b Compare June 18, 2024 15:44
@MaxDesiatov MaxDesiatov changed the title Allow module graph loading to become async Make module graph loading async Jun 20, 2024
@MaxDesiatov MaxDesiatov self-assigned this Jun 20, 2024
@MaxDesiatov MaxDesiatov changed the title Make module graph loading async Make modules graph loading async Jun 27, 2024
…xd/early-graph-memoization

# Conflicts:
#	Sources/Build/BuildOperation.swift
#	Sources/Commands/PackageCommands/DumpCommands.swift
#	Sources/Commands/PackageCommands/InstalledPackages.swift
#	Sources/Commands/PackageCommands/PluginCommand.swift
#	Sources/Commands/Snippets/Cards/SnippetCard.swift
#	Sources/Commands/SwiftRunCommand.swift
#	Sources/Commands/SwiftTestCommand.swift
#	Sources/Commands/Utilities/PluginDelegate.swift
#	Sources/SPMBuildCore/Plugins/PluginInvocation.swift
#	Sources/Workspace/DefaultPluginScriptRunner.swift
#	Tests/SPMBuildCoreTests/PluginInvocationTests.swift
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency modules graph Modules dependency resolution plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants