Stores QueryCounter's counter_name as &'static str (i.e., leaks the counter_name string so that its memory allocation is not freed for the lifetime of the shotover process. This should improve shotover performance as it reduces cloning.
We can observe minor improvement in query_counter benchmark regarding allocating and freeing memory.
Stores QueryCounter's
counter_name
as&'static str
(i.e., leaks thecounter_name
string so that its memory allocation is not freed for the lifetime of the shotover process. This should improve shotover performance as it reduces cloning.We can observe minor improvement in query_counter benchmark regarding allocating and freeing memory.
Progress towards #1649.