|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-07-02 21:38:06
Yuval Ronen <ronen_yuval_at_[hidden]> writes:
> David Abrahams wrote:
>> The default version of front always takes at least two
>> instantiations (begin<...> and deref<...>). If you can do front in
>> one instantiation and you want the optimization, you'd better
>> specialize it.
>
> If this single instantiation you save is important (which sounds to me
> like too small a thing to mess with, but if you claim otherwise, I'll
> take your word for it),
It's at least a 50% savings, and quite possibly more than 50%.
> then wouldn't you want to specialize 'back' as well as 'front', if
> possible? You might be able save an instantiation there as well...
You might want to do that, yes... "if possible" being key words here.
> Moreover, if this single instantiation saving is important, should it be
> specialized for *all* sequences, including those already present in mpl?
I don't have an opinion on it, and I don't see where you're going with
that question.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net