| commit | da76f671d194f10df2f3635be9d37f43207831fb | [log] [tgz] |
|---|---|---|
| author | Tsuyoshi Horo <horo@chromium.org> | Fri Mar 22 11:53:18 2024 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 22 11:53:18 2024 |
| tree | 40cbaaddc0ec773568c0010f9ffbb2c41fa881bb | |
| parent | c724252ef2ca3648d2169c0070fa71ab16ada0c3 [diff] |
Remove inefficient Vector creation in SourceStream::GetMoreData() Creating a WTF::Vector via base::span calls the constructor Vector::Vector(const Collection& collection) which calls Vector::assign(const Collection& other). And the assign() method copies the element one by one. This is very inefficient. To fix this, this CL changes the logic to call Append() which calls memcpy(). Bug: 330803350, 40244488 Change-Id: Iea2c93de8d712ed86fef256e88cf5fe62683c513 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5383145 Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/main@{#1276808}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.