[Patch] Simplify (and speed-up) do_get_year
Paolo Carlini
pcarlini@suse.de
Tue Dec 2 10:38:00 GMT 2003
Hi,
noticed while working on 12791: we can spare the very slow __convert_to_v
call (in the "C" locale, anyway) for such a simple input: just narrow,
check that is a digit ('0' - '9') and convert to integer with a trivial
small loop.
Tested x86-linux. Ok with everyone?
Paolo.
////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_year
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031202/fbebc9c6/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_year
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031202/fbebc9c6/attachment-0001.ksh>
More information about the Libstdc++
mailing list