generated from saxbophone/CPP20-Cross-Platform-Template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
blockedThis cannot be started until prerequisite(s) are completedThis cannot be started until prerequisite(s) are completedgood first issueGood for newcomersGood for newcomersoptimisation
Milestone
Description
In some methods (friend operators), we create a temporary inside the function which is never used again before returning. We assign our digits from these members' digits. These variables can be moved, but I'm not sure if the compiler is smart enough to use move semantics here. We might need to use std::move() on each one to gain the benefits of move semantics in these places, and if it avoids a copy then it will likely increase performance.
I have marked the places where I think this can be done in the linked commit. Not sure I caught all of them, there may be others in the math support header...
Metadata
Metadata
Assignees
Labels
blockedThis cannot be started until prerequisite(s) are completedThis cannot be started until prerequisite(s) are completedgood first issueGood for newcomersGood for newcomersoptimisation