From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#14518: C and Emacs Lisp code parts Date: Wed, 06 Jul 2016 16:27:58 +0100 Message-ID: <87zipubxc1.fsf__2515.43593262813$1467819851$gmane$org@russet.org.uk> References: <624c3d37-c829-7187-a699-7d7bbc211a20@online.de> <83ziq1u668.fsf@gnu.org> <20160701091653.GA2531@acm.fritz.box> <5fcdeec5-fcde-d0ab-e256-e1b2ceb40ccb@online.de> <83shvttsq6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467819851 19662 80.91.229.3 (6 Jul 2016 15:44:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 15:44:11 +0000 (UTC) Cc: 14518@debbugs.gnu.org, emacs-devel@gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 17:43:56 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bKozR-0003tU-Sy for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 17:43:54 +0200 Original-Received: from localhost ([::1]:34335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKozQ-00049C-Vh for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 11:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKol8-0002S1-OZ for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:29:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKol4-0002hL-4q for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKol4-0002hH-0u for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKol3-0003ce-TF for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2016 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14518-submit@debbugs.gnu.org id=B14518.146781889313842 (code B ref 14518); Wed, 06 Jul 2016 15:29:01 +0000 Original-Received: (at 14518) by debbugs.gnu.org; 6 Jul 2016 15:28:13 +0000 Original-Received: from localhost ([127.0.0.1]:39685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKokD-0003b4-F1 for submit@debbugs.gnu.org; Wed, 06 Jul 2016 11:28:13 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:35388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKok8-0003aP-Vp for 14518@debbugs.gnu.org; Wed, 06 Jul 2016 11:28:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=dkAZtxgxj2GX7KIRb1i8vzFeL+jb6Lcqk/wpndS+1E8=; b=ZbcHN+maGdnBypXJUU5Ig8IEMO 1tN+zk0A2LCligUenEpfiRI9bnUJlbWSGpADa1E5sLXncD5iroIx6BCZMqRCvm2DDPtJMjxaC7vvA SH/h7FEBhe6zgrxq/r1GzG8FC6DbRRN/7qxKdW1QbMjgli9nZav11Vykr+2HvbPLx+z4RyIfOuiML d9nyHFz0YzSstp3p/HSUn9xwJ532SF2BmPBUaxbIA7SLV7KFxaQyoBGvxchjjJONkDgE0pdsWJkL/ vNLE1eJx8AtIRr8wNfr073etYnIFliQJbzMum20OnA9bPk82gw1XxNp8YN5n6i2uOuvCnTpM0jNSa CpVSYYlA==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:32529 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bKok2-000fad-UY; Wed, 06 Jul 2016 16:27:58 +0100 In-Reply-To: ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Wed, 6 Jul 2016 09:25:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120504 Archived-At: Andreas R=C3=B6hler writes: > On 06.07.2016 00:48, John Wiegley wrote: >>>>>>> Eli Zaretskii writes: >>> In which you were asked to provide some numbers, but gave none. Please = do >>> provide them, and perhaps that bug could be taken care of. >> Until we have numbers, no action will be taken here. I am still of the >> position that *more* code should be moved from C to Emacs Lisp, and not = the >> other way around. >> >> If there are cases where this might be a bad idea, measurement is needed= to >> convince me. As others have said, performance is a complex beast, and hu= man >> guesses about how a modern machine operates are more often wrong than no= t. >> > > M-x elp-instrument-function RET define-abbrevs RET > do some edits > M-x elp-results RET > > > abbrev--describe 36050 15.224345396 0.0004223119 > abbrev-edit-save-buffer 1 8.034011581 8.034011581 > abbrev-edit-save-to-file 1 8.033998314 8.033998314 > abbrev--write 18025 5.8414600190 0.0003240754 > define-abbrevs 1 1.334075568 1.334075568 > abbrev-get 107835 0.5151135200 4.776...e-06 > abbrev-table-get 36964 0.1173239610 3.174...e-06 > abbrev-table-put 18320 0.0690998279 3.771...e-06 > abbrev-table-empty-p 584 0.010703864 1.832...e-05 > abbrev-table-p 584 0.0050513859 8.649...e-06 > abbreviate-file-name 91 0.002899625 3.186...e-05 > abbrev-table-name 2 0.000254252 0.000127126 But what do these numbers mean? Is this better or worse than previously, and what are you saving? Phil