|
Boost : |
Subject: Re: [boost] [http] Design ideas for a request router
From: VinÃcius dos Santos Oliveira (vini.ipsmaker_at_[hidden])
Date: 2016-03-14 14:46:56
2016-03-14 15:28 GMT-03:00 Steven Watanabe <watanabesj_at_[hidden]>:
> 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.
> >
>
> [func.wrap.func.con]:
> "[Note: Implementations are encouraged to avoid the
> use of dynamically allocated memory for small callable
> objects, for example, where fâs target is an object
> holding only a pointer or reference to an object and
> a member function pointer. â end note]"
I'm aware of that, but my solution is still cheaper. I think my solution
end up being "cleaner" too (although is not complete yet and there is lots
of open questions still).
-- VinÃcius dos Santos Oliveira https://vinipsmaker.github.io/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk