This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is std::search coding fast enough?


On 04/07/07, Dimitris Xochellis <jimxoch@yahoo.gr> wrote:
Hi Paolo,

The code of the predicate version seems even less efficient to me. I am rather tired and maybe I
am not thinking straight right now, but what is the reasoning behind of the two loops *A* & *B*
that seems to do the same thing?

This code is indeed a mess. I 'fixed' in the libstdc++-v7 branch by deleting it, where the predicate and non-predicate versions got merged. I believe (although I can't remember which ones off the top of my head) that a few of the other functions have this strange behaviour of the predicate and non-predicate versions being unexpectedly different. As you say, the predicate and non-predicate versions should really be basically the same.

Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]