From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5499 invoked by alias); 23 Jan 2003 01:45:33 -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 5490 invoked from network); 23 Jan 2003 01:45:32 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 23 Jan 2003 01:45:32 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18bYJn-0006ni-00 for ; Wed, 22 Jan 2003 21:46:19 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18bWRA-0005DH-00 for ; Wed, 22 Jan 2003 20:45:48 -0500 Date: Thu, 23 Jan 2003 01:45:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: very very slow symbol searches Message-ID: <20030123014548.GA19978@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <1043236817.32119.7.camel@Dragon> <15918.45982.254578.620499@localhost.redhat.com> <1043268545.1072.45.camel@Dragon> <1043284590.7612.9.camel@Dragon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1043284590.7612.9.camel@Dragon> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00394.txt.bz2 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. Some performance issues were fixed recently in the glibc CVS. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer