From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31152 invoked by alias); 23 Jan 2003 01:14:09 -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 31144 invoked from network); 23 Jan 2003 01:14:08 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 23 Jan 2003 01:14:08 -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 h0N0jFf28493 for ; Wed, 22 Jan 2003 19:45:15 -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 h0N1E7a22687 for ; Wed, 22 Jan 2003 20:14:07 -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 h0N1E6219540; Wed, 22 Jan 2003 20:14:06 -0500 Subject: Re: very very slow symbol searches From: "Martin M. Hunt" To: "Martin M. Hunt" Cc: Elena Zannoni , gdb@sources.redhat.com In-Reply-To: <1043268545.1072.45.camel@Dragon> References: <1043236817.32119.7.camel@Dragon> <15918.45982.254578.620499@localhost.redhat.com> <1043268545.1072.45.camel@Dragon> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 23 Jan 2003 01:14:00 -0000 Message-Id: <1043284590.7612.9.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-01/txt/msg00392.txt.bz2 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. On Wed, 2003-01-22 at 12:48, Martin M. Hunt wrote: > On Wed, 2003-01-22 at 07:07, Elena Zannoni wrote: > > > > there have been some changes to that function on 12-23. Could you try > > backing those out? This was a change we convinced ourselves it was ok > > to do, but maybe it is problematic. > > I'm using "./insight insight" as a test case, measuring the time it > takes for a source window to be displayed. > > 1 Jan 03 snapshot takes 8 seconds. This is normal. > 8 Jan 03 snapshot takes 70 seconds. > > I'll try to refine this further and come up with a better test case. > > Martin > > > >