This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Is std::search coding fast enough #2
- From: Dimitris Xochellis <jimxoch at yahoo dot gr>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 8 Jul 2007 21:30:50 +0100 (BST)
- Subject: Is std::search coding fast enough #2
Hi list,
In both the predicate and the non-predicate versions of the search STL algorithm I have noticed
the use of the __tmp and __p1 iterators, which always point at exactly the same position. I
believe that using just one of them is adequate enough and will also consume slightly less
execution time and RAM.
This is rather minor issue of course, but since the search algorithm has been recently modified,
maybe now it is a convenient time to fix this as well...
Best regards,
Jim Xochellis
___________________________________________________________
Χρησιμοποιείτε Yahoo!;
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr