commit | 0a41c4afdd65cec55db3377e1620462519353485 | [log] [tgz] |
---|---|---|
author | Dominic Battre <[email protected]> | Thu Nov 26 15:08:10 2020 |
committer | Commit Bot <[email protected]> | Thu Nov 26 15:08:10 2020 |
tree | 0e15a90c0e1b98424f96eb99df592394d8b9cabb | |
parent | 84d7534ad84784e5e06c817104ff752ee3f1ba6b [diff] |
Preallocate memory in ImportantFileWriter The ImportantFileWriter triggers a serialization of the data to be written. Before this CL, it relied on an empty string that would grow bit by bit when the DataSerializer appended content. With this CL we memorize the previously used memory and preallocate that plus 1kB to reduce the number of memory allocations needed. Bug: 1132866 Change-Id: Ie41d28102f493dcb77a9eb0139d8426c86ef4a50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560952 Reviewed-by: Gabriel Charette <[email protected]> Commit-Queue: Dominic Battré <[email protected]> Cr-Commit-Position: refs/heads/master@{#831348}
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.
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.