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

Remove unused array #2361

Merged

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Feb 2, 2023

Motivation:

The PendingDatagramWritesManager unconditionally creates an array and reserves capacity... only to never use it.

Modifications:

Remove the unsued code.

Result:

Fewer allocations.

Motivation:

The `PendingDatagramWritesManager` unconditionally creates an array and
reserves capacity... only to never use it.

Modifications:

Remove the unsued code.

Result:

Fewer allocations.
@glbrntt glbrntt added the semver/patch No public API change. label Feb 2, 2023
@glbrntt
Copy link
Contributor Author

glbrntt commented Feb 3, 2023

Nightly failure is swiftlang/swift#63262, merging over it.

@glbrntt glbrntt merged commit 0d6137f into apple:main Feb 3, 2023
@glbrntt glbrntt deleted the gb-udp-pending-writes-manager-unused-array branch February 3, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants