summaryrefslogtreecommitdiff
path: root/absl/synchronization/internal/waiter_test.cc
diff options
context:
space:
mode:
authorGravatar Andy Getzendanner <durandal@google.com>2023-05-01 14:07:31 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-05-01 14:08:14 -0700
commit61cac1fabb3953830995eefe6a1cca4573033685 (patch)
treea5567df56c0a0ba9c54be6bda8b80fde8bbc8942 /absl/synchronization/internal/waiter_test.cc
parent201c426c122a779382208c9347b35fd696cc3a3c (diff)
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/waiter_test.cc')
0 files changed, 0 insertions, 0 deletions