This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50160] New: vector<bool> comparison very slow (no specialisation)
- From: "devel at the-user dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2011 23:46:19 +0000
- Subject: [Bug libstdc++/50160] New: vector<bool> comparison very slow (no specialisation)
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50160
Bug #: 50160
Summary: vector<bool> comparison very slow (no specialisation)
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: devel@the-user.org
Hi!
Comparison (operator<) on vector<bool> seems to be extremely slow, because it
uses a generic implementation, i.e. bitwise iteration. It should be specialised
and use integer-comparisons provided by the CPU.
Regards