Skip to content

[5.0] Data Inlinability Refinements #21853

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

itaiferber
Copy link
Contributor

What's in this pull request?
Cherry-picks #21754 to swift-5.0-branch. Resolves 46780357

…refinements

Refine Data inlinability

(cherry picked from commit 6c57610)
@itaiferber itaiferber requested a review from phausler January 14, 2019 21:54
@itaiferber itaiferber requested a review from a team as a code owner January 14, 2019 21:54
@itaiferber
Copy link
Contributor Author

@swift-ci Please benchmark

@itaiferber
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build comment file:

Performance: -O

TEST OLD NEW DELTA RATIO
Regression
StringToDataSmall 791 892 +12.8% 0.89x
StringToDataEmpty 698 760 +8.9% 0.92x

Code size: -O

TEST OLD NEW DELTA RATIO
Improvement
DataBenchmarks.o 87535 66530 -24.0% 1.32x
ObjectiveCBridgingStubs.o 27411 23204 -15.3% 1.18x

Performance: -Osize

TEST OLD NEW DELTA RATIO
Regression
StringToDataEmpty 705 786 +11.5% 0.90x
DataAccessBytesSmall 95 105 +10.5% 0.90x (?)

Code size: -Osize

TEST OLD NEW DELTA RATIO
Improvement
DataBenchmarks.o 36355 33242 -8.6% 1.09x

Performance: -Onone

TEST OLD NEW DELTA RATIO
Improvement
DataSetCountMedium 770 583 -24.3% 1.32x

Code size: -swiftlibs

TEST OLD NEW DELTA RATIO
Improvement
libswiftFoundation.dylib 1667072 1638400 -1.7% 1.02x
How to read the data The 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
regressions before you merge the PR.

Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 12-Core Intel Xeon E5
  Processor Speed: 2.7 GHz
  Number of Processors: 1
  Total Number of Cores: 12
  L2 Cache (per Core): 256 KB
  L3 Cache: 30 MB
  Memory: 64 GB
--------------

@itaiferber
Copy link
Contributor Author

@parkera Who should we get to review here?

@airspeedswift
Copy link
Member

@itaiferber I can approve from a landing-in-5.0 perspective but it probably needs a second engineer from Foundation to review for correctness.

@phausler
Copy link
Contributor

@airspeedswift it looks good to me, this is just a cherry-pick from master of the work Itai did for annotating the reasons for inlines and slight tweaks for those.

@airspeedswift airspeedswift merged commit f9c124e into swiftlang:swift-5.0-branch Jan 16, 2019
@itaiferber
Copy link
Contributor Author

Thanks @airspeedswift!

@itaiferber itaiferber deleted the 5.0-data-inlinability-refinements branch January 16, 2019 18:51
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.

4 participants