aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-11-16 15:35:23 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-11-16 20:52:53 +0000
commit629897ed80512a8618e08673c03d8482cbc42eef (patch)
tree91d3a88f9fe0f259961e01f5ec2190e035f73508 /gcc
parent2f5c071860ba3f8ef67d0b9d8291a73766ce0a44 (diff)
downloadgcc-629897ed80512a8618e08673c03d8482cbc42eef.zip
gcc-629897ed80512a8618e08673c03d8482cbc42eef.tar.gz
gcc-629897ed80512a8618e08673c03d8482cbc42eef.tar.bz2
libstdc++: Improve performance of chrono::utc_clock::now()
We can use an array instead of a std::vector, and we can avoid the binary search for the common case of a time point after the most recent leap second. On one system where I tested this, utc_clock::now() now takes about 16ns instead of 31ns. libstdc++-v3/ChangeLog: * include/std/chrono (get_leap_second_info): Optimize.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions