`_IndexAssembler.assemble`: optimize using `toList(growable: false)`
The assemble method is a hotspot for List generation, and a fixed-length list is faster to generate.
- [✅] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Thank you for your contribution! This project uses Gerrit for code reviews. Your pull request has automatically been converted into a code review at:
https://dart-review.googlesource.com/c/sdk/+/381780
Please wait for a developer to review your code review at the above link; you can speed up the review if you sign into Gerrit and manually add a reviewer that has recently worked on the relevant code. See CONTRIBUTING.md to learn how to upload changes to Gerrit directly.
Additional commits pushed to this PR will update both the PR and the corresponding Gerrit CL. After the review is complete on the CL, your reviewer will merge the CL (automatically closing this PR).
@gmpassos @bwilkerson what is the status of this change?
The last update on https://dart-review.googlesource.com/c/sdk/+/381780 is:
This CL has passed the run
https://dart-review.googlesource.com/c/sdk/+/381780 has been updated with the latest commits from this pull request.
https://dart-review.googlesource.com/c/sdk/+/381780 has been updated with the latest commits from this pull request.
@bwilkerson @scheglov same here, please make a call and either accept (+1 & +2 the CL) or reject the PR. Thanks!