Skip to content
Commit c5635731 authored by David Tseng's avatar David Tseng Committed by Chromium LUCI CQ
Browse files

[a11y]: swap vector of AXTreeUpdate(s) in RenderAccessibilityImpl::SendAccessibilitySerialization

- experimentally yields a ~2% performance improvement
- swap should be more efficient than std::move
1. AXTreeUpdate does not actually define a move assignment operator
2. move assignment operators are not automatically generated due to the
presence of both a copy constructor and destructor
3. copy elision may or may not take place

Change-Id: If16e079b4a196b79c3ba8e7831728f9200c66f8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5407055


Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: default avatarAaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1280194}
parent 3bee664f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment