Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove scene building and frame building performance by reducing allocations #3117
Conversation
| @@ -603,6 +609,7 @@ impl<'de> Deserialize<'de> for BuiltDisplayList { | |||
| send_start_time: 0, | |||
| total_clip_nodes, | |||
| total_spatial_nodes, | |||
| prim_count_estimate : 0, | |||
This comment has been minimized.
This comment has been minimized.
db48b42
to
3721810
webrender/src/border.rs, line 686 at r1 (raw file):
It might be worth making the size of this 8 - that should never spill to the heap then, since there will never be more than 4 corners + 4 edge segments added. nit: Possibly worth using a type so the constant isn't repeated, e.g:
|
…ing and pre-allocate the vector to that size
4bb9ca4
to
69740d5
|
Looks good! r=me once CI passes. |
|
Oh, some compile errors in release builds. Must be missing some debug attributes, I guess:
|
|
Note that there is the |
|
@bors-servo r+ |
|
|
Improve scene building and frame building performance by reducing allocations This roughly triples our FPS on the displaylist_mutate talos test, and goes a long way towards resolving #3116. <!-- 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/3117) <!-- Reviewable:end -->
|
|
mattwoodrow commentedSep 25, 2018
•
edited by larsbergstrom
This roughly triples our FPS on the displaylist_mutate talos test, and goes a long way towards resolving #3116.
This change is