[tree-ssa] Optimize reads from constant strings

Paolo Carlini pcarlini@unitus.it
Thu Aug 14 20:10:00 GMT 2003


Richard Henderson wrote:

>On Thu, Aug 14, 2003 at 12:09:34PM -0600, law@redhat.com wrote:
>  
>
>>I doubt optimizing reads from wide strings is really worth it.  We certainly
>>haven't bothered doing so elsewhere.
>>    
>>
>Oversight.  It can't be more than a couple lines of code
>to support it.  With desktop apps being i18n'ed, I could
>see this becoming important.
>
Humbly, I agree.
In fact, in the C++ runtime library we plan to do our best to speed up 
not only char but also wchar_t I/O in the next few months: in 
particular, it's a pity having a potentially very efficient internal 
UCS-4 representation (to be converted only during I/O to UTF-8, for 
example), but actually not fully optimized for futile reasons...

Paolo.



More information about the Gcc-patches mailing list