From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38204 invoked by alias); 8 Mar 2019 21:13:53 -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 38194 invoked by uid 89); 8 Mar 2019 21:13:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=some_function, personal, wow X-HELO: gateway34.websitewelcome.com Received: from gateway34.websitewelcome.com (HELO gateway34.websitewelcome.com) (192.185.147.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Mar 2019 21:13:52 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 8055237D6BE for ; Fri, 8 Mar 2019 15:12:21 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 2Mmzh0Xhh4FKp2MmzhGerN; Fri, 08 Mar 2019 15:12:21 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Mo/q3f3FfpRD1Xi34sQl+lEF//W3HfsDUFerEjRUeOY=; b=fg2Hw6smC1bperwuaWWPetAEdr B1L68Rc7L8VygOOq/NwE6Cl78iOiK9oQzwIlW2AbD9i4EcWZjAK4Op3XrstTbXH5dNq5D2YNlBi0Y KZz9kzV5JOGIKpGdVBZGNLQQ2; Received: from 75-166-85-218.hlrn.qwest.net ([75.166.85.218]:53814 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1h2Mmz-003aYW-7P; Fri, 08 Mar 2019 15:12:21 -0600 From: Tom Tromey To: Cc: Hannes Domani Subject: Re: question about expand_symtabs_matching() References: <183519794.10360727.1551304006549.ref@mail.yahoo.com> <183519794.10360727.1551304006549@mail.yahoo.com> <87h8copz0d.fsf@tromey.com> <1428427467.10799860.1551353565332@mail.yahoo.com> <87lg1yh2gx.fsf@tromey.com> <1682009983.12256919.1551466302655@mail.yahoo.com> Date: Fri, 08 Mar 2019 21:13:00 -0000 In-Reply-To: <1682009983.12256919.1551466302655@mail.yahoo.com> (Hannes Domani via gdb's message of "Fri, 1 Mar 2019 18:51:42 +0000 (UTC)") Message-ID: <87mum5f4uj.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-03/txt/msg00015.txt.bz2 >>>>> "Hannes" =3D=3D Hannes Domani via gdb writes: Hannes> For the case of 'b some_function', with the application I'm testing: Hannes> - startup time with the call of cp_canonicalize_string_no_typedefs(= ): 1m 25s Hannes> - startup time without this call: 27s Wow. Hannes> In my personal build I've changed this: Hannes> - only call cp_canonicalize_string_no_typedefs() if it's not a simp= le function Hannes> =C2=A0 name (like 'function_name' or 'Class::member_function') Hannes> - only call expand_symtabs_matching() if the lookup_name doesn't co= ntain a '.' Hannes> I admit that I don't fully understand what could break with these c= hanges, Hannes> but the speedup makes it worth for me right now. Could you send the diff? thanks, Tom