[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#102193: gcc-3.0: compiled code with gcc 3.0 is slow and big



Hi,

Morten Brix Pedersen wrote:

> int main()
> {
>     string test = "IUHASISAHDNI";
> 
>     vector<string> vec;
>     for (int i = 0; i <= 500000; ++i) {
>         string newstr;
>         test += "NAWNASDKJNKNN";
>         newstr = test;

String assignments are threadsafe now with gcc-3.0, so that will have an
additional overhead.
As already mentioned it's very important to enable optimization for c++
code.

bye, Roman



Reply to: