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

[Merged by Bors] - Always inline Terminal::move_cursor_to #60

Closed
wants to merge 1 commit into from

Conversation

lunacookies
Copy link
Collaborator

@lunacookies lunacookies commented Mar 23, 2021

This is the only Terminal function that wasn’t inlined automatically by LLVM, so I thought it would be good to force inlining it. All it does is forward to core::fmt::write, so I’d hazard a guess that this makes things faster, especially considering that it takes around 20% of pipes-rs’s runtime.

@lunacookies lunacookies requested a review from lhvy March 23, 2021 09:35
@lhvy
Copy link
Owner

lhvy commented Mar 23, 2021

bors r+

bors bot pushed a commit that referenced this pull request Mar 23, 2021
This is the only `Terminal` function that wasn’t inlined automatically by LLVM, so I thought it would be good to force inlining it. All it does is forward to `core::fmt::write`, so I’d hazard a guess that this makes things faster, especially considering that it takes around 20% of pipes-rs’s runtime.
@bors
Copy link

bors bot commented Mar 23, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title Always inline Terminal::move_cursor_to [Merged by Bors] - Always inline Terminal::move_cursor_to Mar 23, 2021
@bors bors bot closed this Mar 23, 2021
@bors bors bot deleted the inline branch March 23, 2021 11:10
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