GNU bug report logs - #69480
Emacs Lisp needs, for its great 'native-compile', 'declare' and 'the' for fixnums and arrays.

Previous Next

Package: emacs;

Reported by: Robert Boyer <robertstephenboyer <at> gmail.com>

Date: Thu, 29 Feb 2024 19:42:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Robert Boyer <robertstephenboyer <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 69480 <at> debbugs.gnu.org
Subject: bug#69480: Emacs Lisp needs, for its great 'native-compile', 'declare' and 'the' for fixnums and arrays.
Date: Thu, 29 Feb 2024 15:04:15 -0600
[Message part 1 (text/plain, inline)]
benchmark-run-compiled reported the same sorry time to *Messages* on:

(progn (emacs-lisp-native-compile-and-load) (benchmark-run-compiled
(build-sieve (expt 10 8))))

(68.42455689 1 1.1884078129999995)

On Thu, Feb 29, 2024 at 2:11 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Robert Boyer <robertstephenboyer <at> gmail.com>
> > Date: Thu, 29 Feb 2024 13:40:14 -0600
> >
> > Consider this form:
> >
> > (progn (emacs-lisp-native-compile-and-load) (benchmark (build-sieve
> (expt 10 8)) 1))
> >
> > First of all, 'benchmark' has an obvious bug because it reports a time of
> > .000005 seconds.
>
> You use benchmark incorrectly.  And you should use benchmark-run
> instead, anyway.
>
> > After finding the file eratosthenese.el, the evaluation of the form above
> > takes 69 seconds in Emacs.
> >
> > After entering SBCL and loading eratosthenese.lisp, (build-sieve (expt
> 10 8))
> > takes 8 seconds.
>
> It takes 16.7 sec on my system.
>
> I see no bug here, native-compiled Emacs Lisp will never be able to
> produce performance similar to SBCL, not the way native compilation is
> implemented in Emacs.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.