commit | fc269309730220a159e1d7cd96e4672a1e216eb2 | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@chromium.org> | Tue Mar 30 21:21:42 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 30 21:21:42 2021 |
tree | c2d0ec50517f8b92634102e74616d5f6562d4736 | |
parent | 6c59d4b7f4150a6233ba9080bc5350ddb1ebe227 [diff] |
[base] Move base::as_const from stl_util.h to its own header stl_util.h is a large header (about 3.6 MB), so having to include that just for a simple function like as_const seems unfortunate, especially when used in popular headers. This reduces the preprocessed size of flat_tree.h from ca 430,000 to 240,000 tokens, and circular_dequeue.h from 512,000 to 390,000 tokens. Those headers are part of 21,000 and 16,000 translation units of the 'chrome' build target, respectively. Bug: 1194078 Change-Id: I6eba892c0c3b9118247fa1409f35f125dc5b6698 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2794366 Auto-Submit: Hans Wennborg <hans@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Owners-Override: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#867793}
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.