This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Simplify (and speed-up) do_get_year
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 02 Dec 2003 12:56:33 +0100
- Subject: Re: [Patch] Simplify (and speed-up) do_get_year
- References: <3FCC6BD6.4080606@suse.de>
... by the way, these are the numbers for a small test, not very
accurate in timing only the relevant code (-O2, P4-2400):
for (int i = 0; i < 5000000; ++i)
{
iss.str("1971");
iterator_type is_it01(iss);
tim_get.get_year(is_it01, end, iss, errorstate, &time01);
}
3.4
---
10.560u 0.000s 0:10.77 98.0% 0+0k 0+0io 195pf+0w
3.4 patched
-----------
6.570u 0.000s 0:06.70 98.0% 0+0k 0+0io 212pf+0w
Paolo.