Performance improvement: make "apm_version_names_compare" faster by a factor of ~100
The function "apm_version_names_compare" is called rel…
Show more
Performance improvement: make "apm_version_names_compare" faster by a factor of ~100The function "apm_version_names_compare" is called relatively oftenand issues an SQL query. The function is stable (returns always thesame results for the same input) and called with only a few differentinput values. By using acs::per_thread_cache the performance improvesfrom 265 microseconds to 2 microseconds; by using the per-tread cachethe operation scales better since it is fully lock-free (once cached).
Show less