For latency sensitive users such as this one it might be useful to use a flat data structure to store reponses where buffers can be reused and thereby removing the need for dynamic memory allocations.
A generic_flag_response would keep all its data into std::string buffer and refer to it with string_views, for exampl
struct generic_flat_response {
std::string buffer;
adapter::result<std::vector<resp3::basic_node<std::string_view>> response;
};
For latency sensitive users such as this one it might be useful to use a flat data structure to store reponses where buffers can be reused and thereby removing the need for dynamic memory allocations.
A generic_flag_response would keep all its data into
std::stringbuffer and refer to it withstring_views, for exampl