This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/58437] Sorting value in reverse order is much slower compare to gcc44


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58437

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Less confusing testcase:

#include <algorithm>
#include <vector>

using namespace std;

int main()
{
  const int num = 10000000;
  vector<int> v; v.reserve(num);
  for(int i=0;i!=num;++i) v.push_back(-i);
  sort(v.begin(), v.end());
}


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