-
Notifications
You must be signed in to change notification settings - Fork 10.5k
stdlib: extract the common code of _NativeDictionary.resize and copyAndResize into a separate function #29381
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
Conversation
@swift-ci test |
@swift-ci benchmark |
Performance: -O
Code size: -O
Performance: -Osize
Code size: -Osize
Performance: -Onone
Code size: -swiftlibsHow to read the dataThe tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.If you see any unexpected regressions, you should consider fixing the Noise: Sometimes the performance results (not code size!) contain false Hardware Overview
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
} | ||
} | ||
_storage = result._storage | ||
_copyOrMoveAndResize(capacity: capacity, moveElements: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the @_semantics
attribute here be applied to the new function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good question. I don't think so, because it's an alwaysEmitIntoClient function. Maybe it's better to remove it at all.
I'll experiment a bit.
…ndResize into a separate function For code size reduction.
7846db8
to
78728d8
Compare
@swift-ci smoke test and merge |
1 similar comment
@swift-ci smoke test and merge |
For code size reduction.