From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32743 invoked by alias); 17 Sep 2016 18:43:31 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 32728 invoked by uid 89); 17 Sep 2016 18:43:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:2002, JIT X-HELO: moltke.seatribe.se Received: from moltke.seatribe.se (HELO moltke.seatribe.se) (178.63.100.209) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 17 Sep 2016 18:43:28 +0000 Received: from [2002:2f8:a79::1] (helo=nerv.dolda2000.com) by moltke.seatribe.se with esmtp (Exim 4.80) (envelope-from ) id 1blKaD-0006SW-Ny; Sat, 17 Sep 2016 20:43:25 +0200 Received: from [2002:2f8:a79:200:d63d:7eff:feb4:da50] ([IPv6:2002:2f8:a79:200:d63d:7eff:feb4:da50]) (authenticated bits=0) by nerv.dolda2000.com (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id u8HIhPON007274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Sep 2016 20:43:25 +0200 Date: Sat, 17 Sep 2016 18:43:00 -0000 From: Fredrik Tolf To: Duane Ellis , gdb@sourceware.org Subject: Re: Bad performance in updating JIT debug symbols In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2016-09/txt/msg00049.txt.bz2 On Sat, 17 Sep 2016, Duane Ellis wrote: > So why not make a wrapper on the symbol lookup function > > Search the main list if that fails to find try the next list of syms. > > After you under 100 inserts resort your additional list. And start a new list I can imagine a lot of ways to optimize the current code, but the main point was that GDB seems to be stuck in a path of the code that is not really intended to be used other than when GDB is "confused", so the main question is why that happens.