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

Basics,_AsyncFileSystem: internalise SystemPackage #8231

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

compnerd
Copy link
Member

SystemPackage is only used as an internal implementation detail here. This package is not needed for the public API surface. Furthermore, as this dependency is a single use dependency, we are able to save some nominal space on the builds with this:

Pre:
SystemPackage.dll: 212992 bytes
_AsyncFileSystem.dll: 60416 bytes

Post:
SystemPackage.dll: 0 bytes (static)
_AsyncFileSystem.dll: 217600

This effectively shaves ~56K off the toolchain.

`SystemPackage` is only used as an internal implementation detail here.
This package is not needed for the public API surface. Furthermore, as
this dependency is a single use dependency, we are able to save some
nominal space on the builds with this:

Pre:
SystemPackage.dll: 212992 bytes
_AsyncFileSystem.dll: 60416 bytes

Post:
SystemPackage.dll: 0 bytes (static)
_AsyncFileSystem.dll: 217600

This effectively shaves ~56K off the toolchain.
@compnerd
Copy link
Member Author

@swift-ci please test

compnerd added a commit to compnerd/sourcekit-lsp that referenced this pull request Jan 17, 2025
The swift-system package is not used in SourceKit LSP. It was required
to fulfil the dependencies for swift-package-manager. With the changes
in swiftlang/swift-package-manager#8231 which internalised the
SystemPackage import, we no longer need this to be provided.
@compnerd compnerd merged commit a73d2b8 into swiftlang:main Jan 20, 2025
5 checks passed
@compnerd compnerd deleted the unsystematic branch January 20, 2025 21:11
compnerd added a commit to swiftlang/sourcekit-lsp that referenced this pull request Jan 20, 2025
The swift-system package is not used in SourceKit LSP. It was required
to fulfil the dependencies for swift-package-manager. With the changes
in swiftlang/swift-package-manager#8231 which internalised the
SystemPackage import, we no longer need this to be provided.
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