This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Performance of std::max_element and std::min_element
- From: Paolo Carlini <pcarlini at suse dot de>
- To: David GONZALEZ MALINE <David dot Gonzalez dot Maline at cern dot ch>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 28 Apr 2008 14:22:15 +0200
- Subject: Re: Performance of std::max_element and std::min_element
- References: <4815BD28.9080506@cern.ch>
Hi David
and many thanks for your message. I promise to closely look into this
issue (and more into the other one) over the next weeks. One important
comment, however:
It seems like in most of the systems, the compiler optimizes the
second version better.
Since we are talking about optimizers / library interactions, it would
be important to have some performance figures for the newer compilers,
even if the library hasn't changed much in this area: the optimizers of
the current release series (4.3.x) are definitely improved compared to
3.4.x and 4.0.x.
Thanks,
Paolo.