-
Notifications
You must be signed in to change notification settings - Fork 6k
Platform channels, eliminate objc copies #25988
Platform channels, eliminate objc copies #25988
Conversation
a5b196e to
07bd913
Compare
07bd913 to
dc64c1f
Compare
dc64c1f to
5703bfc
Compare
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@chinmaygarde This is the last PR in my series of PR's to speed up platform channels iOS by eliminating copies. It was all building up to this moment. |
chinmaygarde
left a comment
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.
Apologies for the delay. This looks great. Thanks.
|
This finally landed and has official results from our tests. It reduced the cost of sending 1mb over binary platform channels 48% on iOS: https://flutter-flutter-perf.skia.org/e/?begin=1620764044&end=1621044607&queries=sub_result%3Dplatform_channel_basic_binary_2host_1MB%26test%3Dmac_ios_platform_channels_benchmarks_ios&requestType=0 |
issue: flutter/flutter#81559
depends on: #25867
locally tested
before:
after:
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.