[Patch, v7] compare(string) optimization
Paolo Carlini
pcarlini@suse.de
Fri Dec 9 22:46:00 GMT 2005
Hi,
we are missing this useful optimization, AFAICS.
Similarly to analogous situations in istream, for example, I believe
it's safe only for char / wchar_t, but in my opinion would be ok also
for any non-totally-crazy char_traits. Any comment about the last point
in particular?
Tested x86-linux, both bases, will go in mainline/4_1 too as ext/vstring.h
Paolo.
P.S. Took the occasion for an unrelated trivial tweak.
/////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_string_compare
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20051209/172bb2aa/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_string_compare
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20051209/172bb2aa/attachment-0001.ksh>
More information about the Libstdc++
mailing list