This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Implementing normal algorithms using predicate versions
On Mon, Nov 29, 2004 at 06:29:32AM -0800, Nathan Myers wrote:
>
> Since, by the policy, it doesn't matter for -O2 or better which choice
> we make, the question just is whether it's worth the effort to maintain
> all the extra source code (equated to complexity) just for the sake of
> -O. That raises the question of just how much source code, and how
> much performance, is involved. If the performance cost is not huge,
> and the amount of code is not trivial, then I think the policy favors
> making the change.
One other consideration: suppose we didn't have the extra code in
the library already, and were offered a well-tested patch to add it.
Would we accept such a patch? I would guess almost certainly not.
That argues for accepting this change.
Nathan Myers
ncm-nospam@cantrip.org