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

Some numbers... (Re: [v3] String: centralize exp growth policy)


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.


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