all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, akrl@sdf.org
Subject: Re: master 289000e: Merge branch 'feature/native-comp' into trunk
Date: Mon, 26 Apr 2021 17:02:44 +0000	[thread overview]
Message-ID: <YIbyNFJZxP+117jH@ACM> (raw)
In-Reply-To: <83bla1jd0w.fsf@gnu.org>

Hello, Eli.

On Mon, Apr 26, 2021 at 18:12:15 +0300, Eli Zaretskii wrote:
> > Date: Mon, 26 Apr 2021 14:54:11 +0000
> > Cc: akrl@sdf.org, emacs-devel@gnu.org
> > From: Alan Mackenzie <acm@muc.de>

> > Native compilation just doesn't seem to be working for me, yet.  How
> > much of a speed up should it give me?  Surely more than 5% - 10%?

> I don't know.  If you describe your benchmark, perhaps I could run it
> here and report.

I use this:

(defmacro time-it (&rest forms)
  "Time the running of a sequence of forms using `float-time'.
Call like this: \"M-: (time-it (foo ...) (bar ...) ...)\"."
  `(let ((start (float-time)))
    ,@forms
    (- (float-time) start)))

(defun time-scroll (&optional arg)
  (interactive "P")
  (message "%s"
           (time-it
            (condition-case nil
                (while t
                  (if arg (scroll-down) (scroll-up))
                  (sit-for 0))
              (error nil)))))

Put point at the start of xdisp.c (or any other large file), optionally
type and delete a space (to clear font-lock text properties), and do M-:
(time-scroll).  This scrolls through the buffer one screenful at a time,
displaying each screenful, then reports the total time.


I've come to the conclusion in the last hour or so that CC Mode just
isn't sped up much at all by native compilation.  Using Andrea's tip of
C-h f c-mode + look for "natively compiled", it is clear that the
natively compiled files _are_ being used.

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2021-04-26 17:02 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210425182503.25223.81072@vcs0.savannah.gnu.org>
     [not found] ` <20210425182508.6CC7C2094D@vcs0.savannah.gnu.org>
2021-04-25 18:36   ` master 289000e: Merge branch 'feature/native-comp' into trunk Andrea Corallo via Emacs development discussions.
2021-04-25 18:40     ` Eli Zaretskii
2021-04-25 18:59       ` Andrea Corallo via Emacs development discussions.
2021-04-25 20:25         ` Eli Zaretskii
2021-04-25 18:45     ` Óscar Fuentes
2021-04-25 20:03     ` Alan Mackenzie
2021-04-25 20:14       ` Eli Zaretskii
2021-04-25 21:55         ` Alan Mackenzie
2021-04-26 11:40           ` Eli Zaretskii
2021-04-26 13:21             ` Alan Mackenzie
2021-04-26 13:45               ` Eli Zaretskii
2021-04-26 14:54                 ` Alan Mackenzie
2021-04-26 15:12                   ` Eli Zaretskii
2021-04-26 17:02                     ` Alan Mackenzie [this message]
2021-04-26 17:13                       ` Stefan Monnier
2021-04-26 17:25                       ` Eli Zaretskii
2021-04-28 11:34                         ` Alan Mackenzie
2021-04-28 12:26                           ` Eli Zaretskii
2021-04-28 12:32                             ` Alan Mackenzie
2021-04-28 13:01                               ` Eli Zaretskii
2021-04-28 19:09                               ` Andrea Corallo via Emacs development discussions.
2021-04-26 15:33                   ` Óscar Fuentes
2021-04-26 15:58                     ` Eli Zaretskii
2021-04-26 16:30                       ` Óscar Fuentes
2021-04-26 17:11                     ` Alan Mackenzie
2021-04-26 20:02                       ` Óscar Fuentes
2021-04-28 14:07                         ` Alan Mackenzie
2021-04-28 15:10                           ` Óscar Fuentes
2021-04-26 15:37                   ` Stefan Monnier
2021-04-26 16:06                   ` Andrea Corallo via Emacs development discussions.
2021-04-26 17:05                     ` Alan Mackenzie
2021-04-25 21:48     ` Stefan Monnier
2021-04-25 22:41     ` Stefan Kangas
2021-04-25 22:57     ` Clément Pit-Claudel
2021-04-26 16:16       ` Andrea Corallo via Emacs development discussions.
2021-04-26 13:03     ` wilde
2021-04-26 13:18     ` Minimal recommended version of gcc/libgccjit for native-comp (was: master 289000e: Merge branch 'feature/native-comp' into trunk) wilde
2021-04-26 15:58       ` Minimal recommended version of gcc/libgccjit for native-comp Stefan Monnier
2021-04-26 16:16         ` Eli Zaretskii
2021-04-26 16:32           ` Andrea Corallo via Emacs development discussions.
2021-04-26 16:54             ` Eli Zaretskii
2021-04-26 20:53               ` Andrea Corallo via Emacs development discussions.
2021-04-27  3:52               ` Richard Stallman
2021-04-26 16:18         ` Andrea Corallo via Emacs development discussions.
2021-04-26 16:12       ` Andrea Corallo via Emacs development discussions.
2021-04-27 14:21         ` wilde
2021-04-27 16:35           ` Andrea Corallo via Emacs development discussions.

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=YIbyNFJZxP+117jH@ACM \
    --to=acm@muc.de \
    --cc=akrl@sdf.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.