commit | 481795de1348d939d01c3ec12e317ad51d0d0cca | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Apr 23 15:17:27 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Apr 23 18:03:06 2021 +0200 |
tree | b9566470fcb59afe09a0512cd8229ebd0cd1b707 | |
parent | a6f9c5d2a71375debaf4d3152ea8102ab97dd539 [diff] |
MINOR: time: avoid unneeded updates to now_offset The time adjustment is very rare, even at high pool rates. Tests show that only 0.2% of tv_update_date() calls require a change of offset. Such concurrent writes to a shared variable have an important impact on future loads, so let's only update the variable if it changed.