[Patch] Simplify (and speed-up) do_get_year

Paolo Carlini pcarlini@unitus.it
Tue Dec 2 11:55:00 GMT 2003


... 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.



More information about the Libstdc++ mailing list