Remove unneccessary test for &that==this in folly::Function's move assignment operator.
Summary: Self-moves are exceedingly rare and need not preserve the state of the object. They must only leave the object in a valid but unspecified state. By removing the branch, we make the common case (non-self move) faster. Reviewed By: spacedentist, ot Differential Revision: D4803486 fbshipit-source-id: 3ef2e1e13cd08d9221ecb154bfb3338b16487717
Showing
Please register or sign in to comment