From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: 78% speed up in CC Mode scrolling. Date: Thu, 7 Jul 2016 19:20:41 +0000 Message-ID: <20160707192041.GE4192@acm.fritz.box> References: <20160703182957.GA4923@acm.fritz.box> <577E809C.2070908@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467919253 13929 80.91.229.3 (7 Jul 2016 19:20:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 19:20:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 21:20:46 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bLEqr-0007Ws-L4 for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 21:20:45 +0200 Original-Received: from localhost ([::1]:41861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLEqq-0003KZ-IO for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 15:20:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLEqj-00038v-Ga for emacs-devel@gnu.org; Thu, 07 Jul 2016 15:20:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLEqf-0003T1-26 for emacs-devel@gnu.org; Thu, 07 Jul 2016 15:20:36 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:32439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLEqe-0003Ss-IQ for emacs-devel@gnu.org; Thu, 07 Jul 2016 15:20:32 -0400 Original-Received: (qmail 1032 invoked by uid 3782); 7 Jul 2016 19:20:28 -0000 Original-Received: from acm.muc.de (p4FC468F2.dip0.t-ipconnect.de [79.196.104.242]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 07 Jul 2016 21:20:27 +0200 Original-Received: (qmail 7569 invoked by uid 1000); 7 Jul 2016 19:20:41 -0000 Content-Disposition: inline In-Reply-To: <577E809C.2070908@gmx.at> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 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:205366 Archived-At: Hello, Martin. On Thu, Jul 07, 2016 at 06:17:32PM +0200, martin rudalics wrote: > > Scrolling through emacs-25's xdisp.c, I get the following timings: > > emacs-25 branch: 45.529s > > master branch: 25.529s > > This is a speedup of around 78%. > Thank you. Using the attached test2.el on frame.c, I get the following > results for emacs -Q (‘foofoo’ scrolls up profiling ‘foo-1’, ‘foobar’ > scrolls down profiling ‘bar-1’). > emacs-25: > Call Count Elapsed Time Average Time > foo-1 169 109.15699999 0.6458994082 > bar-1 169 113.032 0.6688284023 > master: > foo-1 169 45.28100000 0.2679349112 > bar-1 169 53.406 0.3160118343 > These look even better than yours (I have no idea which formula you used > to derive a speedup of "78%" though). Simply 45.529 / 25.529 = 1.78. In your timings I see a speed increase of 141% and 112% respectively. It'd be nice if your results were more typical than mine. What is pure coincidence (I hope) is how similar the digits in my two timings were. > martin -- Alan Mackenzie (Nuremberg, Germany).