Some numbers... (Re: [v3] String: centralize exp growth policy)
Paolo Carlini
pcarlini@suse.de
Wed Jan 28 13:12:00 GMT 2004
Paolo Carlini wrote:
> Hi,
>
> a nice ;) clean-up for mainline, with positive performance
> implications for the constructor from input_iterator(s).
I mean this: consider a file, in_data, 6888890 bytes long, made of
all the integers from 0 to 999999 in a column.
Let's read it back:
ifstream input_file("in_data");
string data((istreambuf_iterator<char>(input_file)),
istreambuf_iterator<char>());
These are the numbers, pretty good ;)
3_4-branch
----------
6.540u 10.440s 0:17.66 96.1% 0+0k 0+0io 202pf+0w
mainline
--------
0.110u 0.030s 0:00.14 100.0% 0+0k 0+0io 201pf+0w
So, probably we want to have this change for 3_4 too right?
Paolo.
More information about the Libstdc++
mailing list