all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: 78% speed up in CC Mode scrolling.
Date: Thu, 7 Jul 2016 19:20:41 +0000	[thread overview]
Message-ID: <20160707192041.GE4192@acm.fritz.box> (raw)
In-Reply-To: <577E809C.2070908@gmx.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).



      reply	other threads:[~2016-07-07 19:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160703182957.GA4923@acm.fritz.box>
2016-07-03 19:27 ` 78% speed up in CC Mode scrolling Eli Zaretskii
2016-07-03 19:39   ` Alan Mackenzie
2016-07-05  9:27     ` Benchmarking (was: 78% speed up in CC Mode scrolling.) Nicolas Richard
2016-07-07 16:17 ` 78% speed up in CC Mode scrolling martin rudalics
2016-07-07 19:20   ` Alan Mackenzie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160707192041.GE4192@acm.fritz.box \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.