From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27227 invoked by alias); 25 Nov 2009 18:14:53 -0000 Received: (qmail 27207 invoked by uid 22791); 25 Nov 2009 18:14:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Nov 2009 18:14:46 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAPIEffA028191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 Nov 2009 13:14:41 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAPIEeLp019605; Wed, 25 Nov 2009 13:14:41 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nAPIEdoj017610; Wed, 25 Nov 2009 13:14:40 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id AE17CC8816A; Wed, 25 Nov 2009 11:14:39 -0700 (MST) From: Tom Tromey To: =?utf-8?B?QW5kcsOpIFDDtm5pdHo=?= Cc: gdb-patches@sourceware.org Subject: Re: [RFA 2/4] dwarf2_physname References: <4B0707E7.5010308@uglyboxes.com> <200911240819.14359.andre.poenitz@nokia.com> <200911251013.24976.andre.poenitz@nokia.com> Reply-To: tromey@redhat.com Date: Wed, 25 Nov 2009 18:14:00 -0000 In-Reply-To: <200911251013.24976.andre.poenitz@nokia.com> (=?utf-8?Q?=22An?= =?utf-8?Q?dr=C3=A9_P=C3=B6nitz=22's?= message of "Wed, 25 Nov 2009 10:13:24 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00554.txt.bz2 >>>>> "Andr=C3=A9" =3D=3D Andr=C3=A9 P=C3=B6nitz = writes: Andr=C3=A9> Now the results of a highly unscientific approach at measuring = "time" FWIW, I do this sort of timing too, I think it is pretty reasonable provided that there isn't much background noise on the system. Andr=C3=A9> # gdb 6.8 from Ubuntu 9.04 (optimized build) GDB 7.0 as a baseline would be more interesting. It may be a little slower than 6.8 due to the C++ name canonicalization. If so, using 6.8 as the baseline would make Keith's patch seem slower than it is. Andr=C3=A9> Block 'ptype': Andr=C3=A9> expr-cumulativ loses ~280% (!) against tromey-python I'm surprised by the archer-tromey-python result, I have no reason to believe it should be faster than anything else. Andr=C3=A9> [...], whereas=20 Andr=C3=A9> optional-psymtab gains >~10% FWIW that number is really the same as the delayed-symfile number, because optional-psymtab only takes the fastest path if you built with a modified GCC, to get the DWARF index. Here are some numbers showing the speedup on a smallish (about 80 KLOC) C++ program if you build it the right way: CVS HEAD 1.83user 0.04system 0:02.06elapsed delayed-symfile 1.30user 0.05system 0:01.50elapsed optional-psymtab 0.43user 0.04system 0:00.51elapsed I haven't tried it on my big test cases yet. Tom