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

Avoid unnecessary copies if there is nothing to escape #80

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Avoid unnecessary copies if there is nothing to escape #80

merged 2 commits into from
Jul 14, 2020

Conversation

Byron
Copy link
Contributor

@Byron Byron commented Jul 6, 2020

That brings ColoredString down to one allocation, which should also be avoidable at the expense of adding lifetimes.

However, this PR is certainly a step in the right direction.

@kurtlawrence kurtlawrence merged commit 25f29cc into colored-rs:master Jul 14, 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.

2 participants