Repository navigation
Performance Improvement for SliverFillRemaining - #44471
Conversation
|
Thank you @Piinks for improving the performance! It would be nice if you can add some performance test to capture and quantify your improvement. It will also prevent accidental performance regression in the future. See https://docs.google.com/document/d/1UolaKhEWieP2DDOhFuVQOuR5e545mO2obXcHH6p40Y4/edit#bookmark=id.70t9gnas5d1j for more info. Please let me know if you have any questions about performance testing. I'm happy to answer them, or review the code in general. |
|
I don't know that I have any baseline to measure a performance improvement for this change. This change is not motivated by a reported issue or performance problem. I am not sure how to capture or quantify any improvement then. 🙂 |
|
@Piinks : I see. The easiest way to get a baseline or to quantify the performance change is probably just running our existing tests. Have you noticed any difference in (To run the test, |
|
Ah! Thanks! I will check that out and report back! 💯 |
|
Looks like a minor improvement for |
|
Good to hear @Piinks ! In that case you probably don't need to write a new performance test. Can you please post your local test result to this PR's description for future reference? |
|
Perf test results after latest merge from master. :) |
|
@Piinks : are you waiting for some framework expert to review this PR? (Just found this lonely PR again in the performance triage.) |
|
Hey @liyuqian, thank you. Yes this is waiting on a review. Would you like to give it a look? It is a fairly trivial change. |
Description
This PR changes the layout work done by RenderSliverFillRemaining, that sometimes would do a second layout path. Instead, since SliverFillRemaining has box children, it uses intrinsic size information.
Tests
Updated tests and added a few that test the horizontal axis.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?