| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
base: Replace circular_deque with vector in traced_value.cc
This change replaces base::circular_deque with std::vector for the
state_stack in TracedValue::AppendAsTraceFormat, where the container is
used as a local stack. std::vector has lower overhead and better memory
locality, and while base::circular_deque can shrink capacity after
elements are deleted, this seems like unnecessary overhead for no
benefit, as the stack's lifetime is limited to the AppendAsTraceFormat
call, which is not interruptible; it's simpler and more efficient to
just free all the memory on method return.
This alignment matches TracedValue::ToBaseValue, which also uses a
std::vector for its internal stack.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |