servo/components
Jonathan Schwender 5533092ab3
Reduce allocations in layout_block_level_children_in_parallel (#35781)
This function showed up as a top producer of allocations
(around 10% of all allocations).
Allocating the vector once upfront and using
`collect_into_vec` removes any intermediate allocations.
This approach is also recommended by the rayon documentation:
https://docs.rs/rayon/1.10.0/rayon/iter/trait.ParallelIterator.html#method.collect

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2025-03-04 07:48:12 +00:00
..
allocator Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
background_hang_monitor Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
bluetooth Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
canvas Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
compositing Optimize IPC for non-cancelable touch events (#35785) 2025-03-04 06:46:25 +00:00
config compositing: Move image output and shutdown management out of the compositor (#35538) 2025-02-20 18:27:49 +00:00
constellation compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
deny_public_fields Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
devtools Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
dom_struct script: Feature-gate all crown support. (#35055) 2025-01-18 21:36:15 +00:00
domobject_derive Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fonts Upgrade Stylo to 2025-03-01 (#35782) 2025-03-04 00:19:46 +00:00
geometry servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
hyper_serde Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
jstraceable_derive Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
layout Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
layout_2020 Reduce allocations in layout_block_level_children_in_parallel (#35781) 2025-03-04 07:48:12 +00:00
layout_thread compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
layout_thread_2020 compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
malloc_size_of libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
media Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
metrics compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
net Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
pixels pixels: Fix webp detection (#35474) 2025-02-19 11:09:16 +00:00
profile Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
rand Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
range Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
script Optimize IPC for non-cancelable touch events (#35785) 2025-03-04 06:46:25 +00:00
script_bindings script: Mark callback methods with CanGc. (#35753) 2025-03-03 12:17:25 +00:00
servo Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
shared compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
timers Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
url Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
webdriver_server compositor: Make PipelineDetails and pending paint metrics per-WebView (#35701) 2025-03-04 02:31:23 +00:00
webgpu Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
webxr Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00