summaryrefslogtreecommitdiff
path: root/absl/flags/flag_test_defs.cc
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-11-15 08:34:44 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-11-15 08:35:20 -0800
commitaa146013a1d8c2d9f567ec23f12927f5d838780f (patch)
tree3d2f10ece8031e3640da3d0a723074bd45231122 /absl/flags/flag_test_defs.cc
parent61ea5d253f152b3be61fcd836b9eaeda669a56a7 (diff)
Speed-up absl::Symbolize by ~6x via faster file reads.
absl::Symbolize does tons of tiny reads. Speed this up by switching from lseek+read to a pread, and by reading more data than requested into a buffer. A faster absl::Symbolize will be helpful in tests and when printing stack traces on /threadz etc. Results for absl::Symbolize benchmark that exercises uncached behavior of absl::Symbolize: ``` name old time/op new time/op delta BM_Symbolize 16.4ms ±12% 2.6ms ± 0% -84.06% (p=0.001 n=5+9) ``` PiperOrigin-RevId: 582687566 Change-Id: I44caf189d81867f3fd8c050a3100a4b9a8e744d7
Diffstat (limited to 'absl/flags/flag_test_defs.cc')
0 files changed, 0 insertions, 0 deletions