J
Julian
hi, i have the following piece of code in a program compiled using both VC8
and VC6. it basically just writes out two arrays to cout.
the VC6 program takes about 4 seconds to go through that bit of code whereas
the VC8 program takes almost 18 seconds !
can someone tell me why this is so ? is this common?
thanks,
Julian.
(numberOfEquations= 15711)
int ic;
ic=0;
for(int j=0; j<numberOfEquations; j++)
{ic +=1;
cout<<loadVector[j]<<FORMAT;
if(ic==10) { ic=0; cout<<endl;}
}cout<<endl;
cout<<"pseudoLoadVector"<<endl;
ic=0;
for( j=0; j<numberOfEquations; j++)
{ic +=1;
cout<<pseudoLoadVector[j]<<FORMAT;
if(ic==10) { ic=0; cout<<endl;}
}cout<<endl;
and VC6. it basically just writes out two arrays to cout.
the VC6 program takes about 4 seconds to go through that bit of code whereas
the VC8 program takes almost 18 seconds !
can someone tell me why this is so ? is this common?
thanks,
Julian.
(numberOfEquations= 15711)
int ic;
ic=0;
for(int j=0; j<numberOfEquations; j++)
{ic +=1;
cout<<loadVector[j]<<FORMAT;
if(ic==10) { ic=0; cout<<endl;}
}cout<<endl;
cout<<"pseudoLoadVector"<<endl;
ic=0;
for( j=0; j<numberOfEquations; j++)
{ic +=1;
cout<<pseudoLoadVector[j]<<FORMAT;
if(ic==10) { ic=0; cout<<endl;}
}cout<<endl;