commit | cc6ae588622a0e162becda93d658c08625aab711 | [log] [tgz] |
---|---|---|
author | Dale Curtis <dalecurtis@chromium.org> | Wed Sep 11 21:33:52 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 11 21:33:52 2024 |
tree | d308748975943c1a182b9c8e6b8af45e95b86fa3 | |
parent | 998d7d56525d3ac29b3a95caece537fa482bddae [diff] |
Reduce overhead of DecoderBuffer; it's highly allocated. A normal media playback may allocate tens of thousands of these objects, we should take care to minimize the amount of overhead in each DecoderBuffer. This reduces the size of DecoderBuffer from 272 bytes to 112 with no loss of functionality; a 60% reduction in overhead that can be seen on QuotaExceeded tests. The TimeInfo and DiscardPadding structures are now constructed on the fly. They are only used in audio decoding. Subsequent changes could remove the need for this construction if we remove the TimeInfo structure. Bug: 365814210 Change-Id: Iad89ca5711138da858ba620464b9dc35ee3f48d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5852503 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Reviewed-by: Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by: Matthew Denton <mpdenton@chromium.org> Cr-Commit-Position: refs/heads/main@{#1354200}
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.