diff options
author | Abseil Team <absl-team@google.com> | 2023-02-02 00:48:53 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-02 00:49:39 -0800 |
commit | 9858e5421b14c9d72f2103af10010c5452c6d55f (patch) | |
tree | af3a6297b0af2933fe1e4a7755b4214848c8e3c5 /absl/time/format_test.cc | |
parent | 7c7cafef4ff11979a26702080a2a4bf0dad7d856 (diff) |
Get rid of tail padding within `absl::Duration`. This reduces memory usage needs when storing duration in containers (e.g. `vector<absl::Duration>` uses 25% less memory), and allows classes with `absl::Duration` fields to fit other stuff in memory previously used by tail padding (e.g. `std::optional<absl::Duration>` is now 16 bytes instead of 24).
PiperOrigin-RevId: 506543503
Change-Id: Ifeb2397c953a5d3da317a70ab49a3ebb85042344
Diffstat (limited to 'absl/time/format_test.cc')
0 files changed, 0 insertions, 0 deletions