Skip to content

Pass PrintOptions by const reference instead of by value. #32466

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

Merged

Conversation

martinboehme
Copy link
Contributor

PrintOptions likely started as a small type that made sense to pass by value, but it's become big enough that passing by const reference is more efficient now.

`PrintOptions` likely started as a small type that made sense to pass by
value, but it's become big enough that passing by const reference is
more efficient now.
@martinboehme martinboehme requested a review from gribozavr June 19, 2020 12:30
@martinboehme
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 0f7eb02

@martinboehme
Copy link
Contributor Author

@swift-ci Please test OS X

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 0f7eb02

Copy link
Contributor

@harlanhaskins harlanhaskins left a comment

Choose a reason for hiding this comment

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

Thanks!

@CodaFi
Copy link
Contributor

CodaFi commented Jun 19, 2020

@swift-ci smoke test macOS

@CodaFi
Copy link
Contributor

CodaFi commented Jun 20, 2020

@CodaFi CodaFi merged commit 90cb347 into swiftlang:master Jun 20, 2020
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.

5 participants