Skip to content

Stop pessimizing print performance for no reason. #14076

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
merged 1 commit into from
Jan 23, 2018
Merged

Stop pessimizing print performance for no reason. #14076

merged 1 commit into from
Jan 23, 2018

Conversation

lattner
Copy link
Contributor

@lattner lattner commented Jan 23, 2018

As pointed out in Ole Begeman's blog:
https://oleb.net/blog/2016/09/playground-print-hook/

The playground print hook is being initialized a a non-null noop hook,
which causes the fast paths in the print functions to be unused, and
forcing the creation of a tee stream for things that have nothing to
do with playgrounds. It is sad that no one noticed this...

As pointed out in Ole Begeman's blog:
https://oleb.net/blog/2016/09/playground-print-hook/

The playground print hook is being initialized a a non-null noop hook,
which causes the fast paths in the print functions to be unused, and
forcing the creation of a tee stream for things that have nothing to
do with playgrounds.  It is sad that no one noticed this...
@lattner
Copy link
Contributor Author

lattner commented Jan 23, 2018

@swift-ci please test and merge

@lattner
Copy link
Contributor Author

lattner commented Jan 23, 2018

@ole fyi.

@swift-ci swift-ci merged commit 16c93f8 into swiftlang:master Jan 23, 2018
@ole
Copy link
Contributor

ole commented Jan 23, 2018

@lattner Thanks!

@lattner lattner deleted the fastar-print branch January 23, 2018 16:18
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.

3 participants