From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21669 invoked by alias); 23 Jan 2003 02:43:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21662 invoked from network); 23 Jan 2003 02:43:29 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 23 Jan 2003 02:43:29 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h0N2Eaf10020 for ; Wed, 22 Jan 2003 21:14:36 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h0N2hTa06354; Wed, 22 Jan 2003 21:43:29 -0500 Received: from dragon (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h0N2hS223978; Wed, 22 Jan 2003 21:43:28 -0500 Subject: Re: very very slow symbol searches From: "Martin M. Hunt" To: Daniel Jacobowitz Cc: gdb@sources.redhat.com, kettenis@gnu.org In-Reply-To: <20030123014548.GA19978@nevyn.them.org> References: <1043236817.32119.7.camel@Dragon> <15918.45982.254578.620499@localhost.redhat.com> <1043268545.1072.45.camel@Dragon> <1043284590.7612.9.camel@Dragon> <20030123014548.GA19978@nevyn.them.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 23 Jan 2003 02:43:00 -0000 Message-Id: <1043289952.1100.4.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-01/txt/msg00395.txt.bz2 On Wed, 2003-01-22 at 17:45, Daniel Jacobowitz wrote: > On Wed, Jan 22, 2003 at 05:16:29PM -0800, Martin M. Hunt wrote: > > More details. The slowdown is caused by using the glibc regex. Why > > would that make it so much slower? Don't know yet. Anyway forcing GDB > > to use the included regex in libiberty fixes the problem. > > > > 2003-01-02 Mark Kettenis > > > > * configure.in: Rewrite check for GNU regex and the > > --without-included regex option, and move it into the "Checks > > for > > library functions" section. This makes us use the system regex > > again by default on systems with version 2 of the GNU C library. > > This was apparently broken. > > * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define. > > * acconfig.h (USE_INCLUDED_REGEX): Remove. > > * config.in, configure: Regenerated. > > Sigh, let me gues, is your host glibc version 2.3? The regex engine > was rewritten, not always for the better. I'm running unmodified RH8.0 ~> rpm -q glibc glibc-2.2.93-5 > Some performance issues were fixed recently in the glibc CVS. That doesn't help much. What was wrong with having GDB on all platforms using the standard libiberty regex? Martin