From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18045 invoked by alias); 22 Jan 2003 11:58:03 -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 18038 invoked from network); 22 Jan 2003 11:58:01 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 22 Jan 2003 11:58:01 -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 h0MBT9f30717 for ; Wed, 22 Jan 2003 06:29:09 -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 h0MBvpa32448 for ; Wed, 22 Jan 2003 06:57:51 -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 h0MBvob18888 for ; Wed, 22 Jan 2003 06:57:50 -0500 Subject: very very slow symbol searches From: "Martin M. Hunt" To: gdb@sources.redhat.com Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 22 Jan 2003 11:58:00 -0000 Message-Id: <1043236817.32119.7.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-01/txt/msg00371.txt.bz2 Anyone have any idea why search_symbols in symtab.c is now a few thousand times slower than it used to be? At least it is on Linux x86. Insight calls search_symbols twice on startup. Sometime 2-4 weeks ago, (builds from CVS on sources) Insight started taking a minute or two to load when debugging itself. It is very fast when debugging small programs, but large things like insight or gdb take forever. At first glance the problem is that search_symbols() is taking 20-30 seconds to return. Everything is fine on Windows which starts up much faster than Linux, even before this latest slowness. Martin