diff options
author | Andy Getzendanner <durandal@google.com> | 2023-05-01 14:07:31 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-05-01 14:08:14 -0700 |
commit | 61cac1fabb3953830995eefe6a1cca4573033685 (patch) | |
tree | a5567df56c0a0ba9c54be6bda8b80fde8bbc8942 /absl/synchronization/internal/futex.h | |
parent | 201c426c122a779382208c9347b35fd696cc3a3c (diff) | |
download | abseil-61cac1fabb3953830995eefe6a1cca4573033685.tar.gz abseil-61cac1fabb3953830995eefe6a1cca4573033685.tar.bz2 abseil-61cac1fabb3953830995eefe6a1cca4573033685.zip |
Instantiate LogMessage::CopyToEncodedBuffer separately for literals and non-literals to save an instruction at each operator<<(string) callsite.
The operator<<s get inlined at the callsite. The saved instruction is a 'load immediate' to put the StringType argument in a register for passing.
This does make the logging TU slightly larger, but it will be an overall size win for all but the smallest programs. Smaller, faster code at callsites is worth it anyway.
PiperOrigin-RevId: 528569773
Change-Id: Id8185266a975a12ab6f1a553c2c0846261822396
Diffstat (limited to 'absl/synchronization/internal/futex.h')
0 files changed, 0 insertions, 0 deletions