Skip to content
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

Optimize the allocation of rasterized blobs a bit #3405

Merged
merged 1 commit into from
Dec 13, 2018

Conversation

kvark
Copy link
Member

@kvark kvark commented Dec 12, 2018

Follow-up to #3398
Aimed to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1513521
Pending try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=26ea31fd69e8ed47167f33afefbd711424f0250a

I think it's harmless either way, waiting to see if talos results are back to normal.


This change is Reviewable

@gw3583
Copy link
Contributor

gw3583 commented Dec 13, 2018

r=me, but can we add a comment explaining why the code is faster this way than using extend, so that someone doesn't accidentally regress it?

@kvark
Copy link
Member Author

kvark commented Dec 13, 2018

@gw3583 my understanding is that append versus extend here is rather secondary, we'll only hit it upon getting the "missing" rasterized blobs, which as a concept should go away soon (I hope!). The win here is from just taking existing vec if ours is not yet initialized. And that's pretty obvious in the code.

@kvark
Copy link
Member Author

kvark commented Dec 13, 2018

Added a comment as requested.
@bors-servo r=gw3583

@bors-servo
Copy link
Contributor

📌 Commit 074035c has been approved by gw3583

@bors-servo
Copy link
Contributor

⌛ Testing commit 074035c with merge 6bf4830...

bors-servo pushed a commit that referenced this pull request Dec 13, 2018
Optimize the allocation of rasterized blobs a bit

Follow-up to #3398
Aimed to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1513521
Pending try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=26ea31fd69e8ed47167f33afefbd711424f0250a

I think it's harmless either way, waiting to see if talos results are back to normal.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3405)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: gw3583
Pushing 6bf4830 to master...

@bors-servo bors-servo merged commit 074035c into servo:master Dec 13, 2018
@kvark kvark deleted the blob-alloc branch December 13, 2018 03:21
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 13, 2018
…8970d1a90fe9 (WR PR #3405). r=kats

servo/webrender#3405

Differential Revision: https://phabricator.services.mozilla.com/D14403

--HG--
extra : moz-landing-system : lando
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Dec 14, 2018
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…8970d1a90fe9 (WR PR #3405). r=kats

servo/webrender#3405

Differential Revision: https://phabricator.services.mozilla.com/D14403

UltraBlame original commit: 29c74238cd77c77810351adc8d1d3b003f8d733a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…8970d1a90fe9 (WR PR #3405). r=kats

servo/webrender#3405

Differential Revision: https://phabricator.services.mozilla.com/D14403

UltraBlame original commit: 29c74238cd77c77810351adc8d1d3b003f8d733a
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…8970d1a90fe9 (WR PR #3405). r=kats

servo/webrender#3405

Differential Revision: https://phabricator.services.mozilla.com/D14403

UltraBlame original commit: 29c74238cd77c77810351adc8d1d3b003f8d733a
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.

3 participants