From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: Should we land Lisp reader optimizations? Date: Wed, 21 Jun 2017 05:46:11 -0400 Message-ID: <49913BC2-64BC-4875-A145-133BB4C64CCB@raeburn.org> References: <83y3snx6b7.fsf@gnu.org> <56EA228B-387F-4983-A91E-97ACFE56F42F@raeburn.org> <83a852wuk0.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498038394 2787 195.159.176.226 (21 Jun 2017 09:46:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Jun 2017 09:46:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 21 11:46:24 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNcDP-00009k-M7 for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2017 11:46:23 +0200 Original-Received: from localhost ([::1]:52779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNcDU-0008Ma-Dr for ged-emacs-devel@m.gmane.org; Wed, 21 Jun 2017 05:46:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNcDN-0008MO-3k for emacs-devel@gnu.org; Wed, 21 Jun 2017 05:46:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNcDJ-0007gf-T5 for emacs-devel@gnu.org; Wed, 21 Jun 2017 05:46:21 -0400 Original-Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:35298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNcDJ-0007fl-Nm for emacs-devel@gnu.org; Wed, 21 Jun 2017 05:46:17 -0400 Original-Received: by mail-qt0-x243.google.com with SMTP id x58so26526764qtc.2 for ; Wed, 21 Jun 2017 02:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raeburn-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MfnPTTstQAFIstlwGLI80DvGzySxzYfV6mY3FOzZvoY=; b=HIX9qMtSuLl3pZKjj2jE39ERXt+6TAB0v031Oc88JkxT9dheYLcukjZ5f/IzUR7UvU ViS46h5gEBYl8+5DQfBfZw7u7RWs+in0+MgSJz/nJtoi2CRTkIB51X0DBEdJ26XLzJry scT7UQOisyePEWxzm+MLNEr5IdQjjrWq1WmLSNPqlBJFZt9pSKfKTkdanZxyiRoXtSGP utmPZ26y67omOejJ2CWSGN/yNKNcVnNCevdlHGsobXo73MBECanKH4B2DbzzjXkGdo7N bcG51yKMceSoG5fJ1Qaqg6OXqyLgSYyOkdjxGu3RGpF+I99NlAtRNoxSMd/eE6m/m4tf lnpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MfnPTTstQAFIstlwGLI80DvGzySxzYfV6mY3FOzZvoY=; b=tLcQvwgBvuWMXpPPUr8Jm5IAfteFfqhc8qOKy770Pxo066uWQhm9u9udHs+S3omT3q MRoWKOVDL7m3iOtunSP59YQKVJ9sZp801e2B9tvGJhwmJX7q/04OEsFDhiarNp/sBIRB KD3l2i5z6fAoymt9D1z6bFeHcBF5o9J0BC+H+uSH8yzku9FVAeuCcDFBOMZzHtAd6lau xvn4dxK5YtVOLJdyLBvsgX7pX589+KRmQN+Z9N261iPYV8XJ4qfPMV4pDDymC6uuPBEA 0xhALK41N+RnupoUntx8RjPsrOUUFsV5jDVXGdj/zxE8ISLvMIMNNkISnaYYAUMom4Pi iE1w== X-Gm-Message-State: AKS2vOwzn9OTR6TE380SxtWf62ws40vLdOWgtmJ+L9afY0hx2tnuS3u8 KuvoUvFr58ucPsvk X-Received: by 10.237.38.71 with SMTP id z65mr42030652qtc.52.1498038373943; Wed, 21 Jun 2017 02:46:13 -0700 (PDT) Original-Received: from [192.168.23.52] (c-73-253-167-23.hsd1.ma.comcast.net. [73.253.167.23]) by smtp.gmail.com with ESMTPSA id r12sm10724591qte.48.2017.06.21.02.46.12 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Jun 2017 02:46:13 -0700 (PDT) In-Reply-To: <83a852wuk0.fsf@gnu.org> X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215852 Archived-At: On Jun 20, 2017, at 11:25, Eli Zaretskii wrote: >=20 > How much faster does it make reading a large .elc file from disk? I tried a couple of file-loading tests: 1) Loading several Gnus nn* files, several progmodes, and a few others, = then unloading them all, in a loop 50 times. Run time dropped from = 14.6s to 13.3s, about a 9% drop; GCs went from 176 to 136. The = getc_unlocked and symbol-interning changes appear to have had the = biggest effect in this case. 2) Loading ja-dic.elc, the biggest .elc file in my build tree, 100 = times. Run time went from 14.3s to 9.3s, about a 35% drop; GCs went = from 200 to 101. I didn=E2=80=99t break this one down by individual = code changes. I don=E2=80=99t think anything in the tree is likely to show the high = degree of object sharing and the huge number of shared objects being = tracked at one time that dumped.elc does. > In any case, a 13x speedup sounds very impressive, so I think we want > this on master as soon as you can do it. Okay, looks like people are in favor, so I=E2=80=99ll try to get the = more effective smaller patches pulled in this week. The less helpful = ones I=E2=80=99ll keep on my scratch branch for now. And I=E2=80=99ve = still got the #N# symbol sharing and file-reading specialization changes = to evaluate with the master branch. Ken=