You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godbolt Link
As you can see in the asm output, even set opt-level = 3, if we don't add Copy to structs with all fields Copy derived, in clone() it generates more mov and large struct can't trigger memcpy.
Godbolt Link
As you can see in the asm output, even set
opt-level = 3, if we don't addCopyto structs with all fieldsCopyderived, inclone()it generates moremovand large struct can't triggermemcpy.