https://sourceware.org/bugzilla/show_bug.cgi?id=25180

            Bug ID: 25180
           Summary: Slowness in cplus_demangle()
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: tim.ruehsen at gmx dot de
  Target Milestone: ---

The following code takes ~9 Minutes to finish while running at 100% on 1 CPU
core (3.4 GHz).

building:
- cd into libiberty/
- gcc x.c -o x libiberty.a
- ./x

#include "../include/demangle.h"
void main(void)
{
  const char *input =
"_ZZ1_DOaaaa1zmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm1Dclaa1D1VEE1VE2zo";

  cplus_demangle(input, DMGL_GNU_V3);
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to