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]

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 


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