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

Reduce cloning in operators #14

Merged
merged 2 commits into from
Jan 26, 2018
Merged

Reduce cloning in operators #14

merged 2 commits into from
Jan 26, 2018

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jan 26, 2018

Rather than forwarding everything to references, which must then clone to
do the actual operation, we'll go the other way -- clone references to
values, then operators by value can mostly do their work directly.

A few of the op-assign implementations can also reduce cloning by using
more op-assign themselves.

Rather than forwarding everything to references, which must then clone
to do the actual operation, we'll go the other way -- clone references
to values, then operators by value can mostly do their work directly.
@cuviper
Copy link
Member Author

cuviper commented Jan 26, 2018

bors r+

bors bot added a commit that referenced this pull request Jan 26, 2018
14: Reduce cloning in operators r=cuviper a=cuviper

Rather than forwarding everything to references, which must then clone to
do the actual operation, we'll go the other way -- clone references to
values, then operators by value can mostly do their work directly.

A few of the op-assign implementations can also reduce cloning by using
more op-assign themselves.
@bors
Copy link
Contributor

bors bot commented Jan 26, 2018

Build succeeded

@bors bors bot merged commit a355903 into rust-num:master Jan 26, 2018
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.

1 participant