This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r108347 - in /branches/libstdcxx_so_7-branch/li...
- From: paolo at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Sat, 10 Dec 2005 09:53:04 -0000
- Subject: r108347 - in /branches/libstdcxx_so_7-branch/li...
Author: paolo
Date: Sat Dec 10 09:53:03 2005
New Revision: 108347
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108347
Log:
2005-12-10 Paolo Carlini <pcarlini@suse.de>
* include/ext/sso_string.h (__sso_string<>::_M_compare): Add,
specialized for char and wchar_t to immediately return true when
a string is compared to itself.
* include/ext/rc_string.h (__rc_string<>::_M_compare): Likewise,
for the same _Rep.
* include/bits/basic_string.h (compare(const string&)): Use it.
* src/sso_string-inst.cc: Adjust includes order.
* src/rc_string-inst.cc: Likewise.
* testsuite/performance/21_strings/string_compare.cc: New.
* include/ext/sso_string.h (__sso_string<>::_M_destroy): Deallocate
passed size + 1.
(_M_dispose, _M_reserve): Adjust.
Added:
branches/libstdcxx_so_7-branch/libstdc++-v3/testsuite/performance/21_strings/string_compare.cc
Modified:
branches/libstdcxx_so_7-branch/libstdc++-v3/ChangeLog.libstdcxx_so_7-branch
branches/libstdcxx_so_7-branch/libstdc++-v3/include/bits/basic_string.h
branches/libstdcxx_so_7-branch/libstdc++-v3/include/ext/rc_string.h
branches/libstdcxx_so_7-branch/libstdc++-v3/include/ext/sso_string.h
branches/libstdcxx_so_7-branch/libstdc++-v3/src/rc_string-inst.cc
branches/libstdcxx_so_7-branch/libstdc++-v3/src/sso_string-inst.cc