This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/50160] New: vector<bool> comparison very slow (no specialisation)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]