[Patch] Fix libstdc++/13341 (speed-up <wchar_t>::do_narrow/widen)

Paolo Carlini pcarlini@unitus.it
Sat Dec 13 17:16:00 GMT 2003


Benjamin Kosnik wrote:

>> 1- Construction time doubled.
>> 2- Memory usage doubled.
>
>
> ...both of these are one time hits. I think this is ok, given the 
> context (initialization).

Ok. The below are the corresponding changes: indeed, do_widen becomes 
really minimal and
even faster. Good.

Tested x86-linux, gnu/generic.

Will wait 'til monday.

Paolo.

P.S. Perhaps it's obvious for you, sorry, but I mention here that 
wctob(i) returns EOF
for all i : i > 127, already in the C locale.

//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_nw
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031213/fd657a8e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_nw
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031213/fd657a8e/attachment-0001.ksh>


More information about the Libstdc++ mailing list