Is std::search coding fast enough #2

Dimitris Xochellis jimxoch@yahoo.gr
Sun Jul 8 20:31:00 GMT 2007


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 



More information about the Libstdc++ mailing list