Subject: Re: [boost] [http] Design ideas for a request router
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-03-14 14:28:27
On 03/14/2016 12:58 AM, Vinícius dos Santos Oliveira wrote:
> Knowing this is Boost and Boost is about serious C++ users I know I must be
> concerned about performance. Therefore, many may not like the
> std::function<> approach. It can imply some hidden allocation that you pay
> even if the handler is not going to give up on the route.
"[Note: Implementations are encouraged to avoid the
use of dynamically allocated memory for small callable
objects, for example, where fs target is an object
holding only a pointer or reference to an object and
a member function pointer. end note]"