I have been seeing a consistent slowness in g++ compilation for a small file like the following , The uptime is near ( load Is near to 0 ) . I have put the time output for the same,
The file looks like the following #include<iostream> #include<vector> #include<deque> using namespace std; int main() { int data[5] = {6,7,8,6,5}; vector<int> v(5,6); deque<int> d(data, data+5); deque<int>::iterator p; cout << "\n Deque values" <<endl; for (p= d.begin(); p!= d.end(); ++p) cout <<*p<<'\t'; cout <<endl; d.insert(d.begin(), v.begin(), v.end()); for (p= d.begin() ; p != d.end(); ++p) cout<<*p <<'\t'; cout <<endl; } a.outvgamd261> /usr/bin/time g++ p237.cc 0.84user 0.17system 0:05.14elapsed 19%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (1968major+20640minor)pagefaults 0swaps _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus