This is the mail archive of the gcc@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]

Performance Gcc 3.3.1 VS 2.95.1


To whom it may concern,

I upgraded one of my gcc from 2.95.1 to gcc 3.3.1 month ago. But now I
found the performance of compiled code is worse than before. It is worse
even with optimization than compiled with 2.95.1 without optimization. For
example,

for (i = 0; i < n; i++)
    {
        capacity += 6;
        str.reserve(capacity);
        str += "hello\n";
    }

This program will make significant different performance. Could you give
me some explaination? Thanks.

Richard


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