Vladislav Vaintroub
0579ceb68d
MDEV-37187 hashicorp plugin: avoid expensive clock() in hot path
...
The plugin used clock() only to timestamp cache entries and measure
elapsed time against millisecond timeouts. As shown in MDEV-12345,
clock() is prohibitively expensive, and we do not need per-thread or
per-process CPU time here, only time differences.
Replace clock()/clock_t with the monotonic std::chrono::steady_clock.
Timeouts are kept as std::chrono::milliseconds
2026-06-30 12:19:26 +03:00
..
2023-05-24 13:21:55 +03:00
2025-05-21 09:47:55 +02:00
2025-04-07 11:04:53 +02:00
2025-01-08 12:51:26 +02:00
2026-05-03 19:17:17 +10:00
2024-11-29 12:37:46 +02:00
2025-06-10 15:18:28 +02:00
2024-02-08 15:04:46 +02:00
2024-11-18 22:35:40 +11:00
2025-06-18 09:11:28 +10:00
2026-04-28 16:05:51 +02:00
2024-01-23 13:03:12 +02:00
2026-01-28 14:22:20 +01:00
2025-01-16 11:43:27 -05:00
2026-06-30 12:19:26 +03:00
2020-04-10 19:05:26 +02:00
2024-07-03 13:20:33 +03:00
2022-11-28 13:43:41 +02:00
2021-12-08 14:57:37 +01:00
2021-12-08 14:57:37 +01:00
2021-12-08 14:57:37 +01:00
2021-12-08 14:57:37 +01:00
2021-12-08 14:57:37 +01:00
2024-09-05 12:14:06 +10:00
2026-01-26 23:15:34 +01:00
2026-01-28 14:22:20 +01:00
2022-08-08 17:12:32 +02:00
2024-02-01 18:36:14 +01:00
2024-04-22 15:23:10 +02:00
2020-08-07 13:36:11 +02:00
2026-04-16 19:00:12 +10:00
2024-06-27 10:26:09 +03:00
2024-02-26 19:00:45 +04:00
2025-06-12 16:58:52 +05:30
2026-01-28 14:22:20 +01:00
2024-01-18 19:22:23 +02:00
2025-04-13 12:19:56 +02:00
2025-02-03 16:45:02 +04:00
2021-10-26 17:07:46 +02:00
2022-10-02 14:38:13 +02:00