From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69480: Emacs Lisp needs, for its great 'native-compile', 'declare' and 'the' for fixnums and arrays. Date: Thu, 29 Feb 2024 22:10:27 +0200 Message-ID: <86edcvrpzg.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69480@debbugs.gnu.org To: Robert Boyer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 29 21:11:58 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rfml3-0003yG-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Feb 2024 21:11:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfmki-0002ZN-1s; Thu, 29 Feb 2024 15:11:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfmkg-0002ZB-S9 for bug-gnu-emacs@gnu.org; Thu, 29 Feb 2024 15:11:34 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfmkg-0002xL-K9 for bug-gnu-emacs@gnu.org; Thu, 29 Feb 2024 15:11:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfml7-00044W-U3 for bug-gnu-emacs@gnu.org; Thu, 29 Feb 2024 15:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Feb 2024 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69480 X-GNU-PR-Package: emacs Original-Received: via spool by 69480-submit@debbugs.gnu.org id=B69480.170923749715620 (code B ref 69480); Thu, 29 Feb 2024 20:12:01 +0000 Original-Received: (at 69480) by debbugs.gnu.org; 29 Feb 2024 20:11:37 +0000 Original-Received: from localhost ([127.0.0.1]:35446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfmkj-00043s-B2 for submit@debbugs.gnu.org; Thu, 29 Feb 2024 15:11:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfmkf-00043T-KY for 69480@debbugs.gnu.org; Thu, 29 Feb 2024 15:11:35 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfmk8-0002p5-V3; Thu, 29 Feb 2024 15:11:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PrHEwb4CDMY46+smu8TINXv16oDhaZAEBMJhG2dChOI=; b=m+mPObhY0xxb KGnTW7docrpcyVnjFrwklFDcBLiU7+Pj6F2pt5ayAQB2LMYzaVlDZLLcLNxpoKoPOpnhsv87NwDkO g81r/mIRFMLI8WAVaVwWUG/W+Guc6Eg3tw9kl+Nqdv50BdVGXfFFJgNqbOJNXLMvGn4EgcFLlesWD QuRu2O+dwhFMSq0KXnhp1y2EKWlcb5ngmvT/gdtyEtQUbtowdEL1o1/kbtnK8ErRebSG0SsHUkGzD DLjPE+Dg9gBa4FiCCX9xmB8tmTxF8gb6A6UUkY+NqUCKWN/EAAgCx1KU19FfHNwQwxGsb/OHUMjDq yELe2T3ui56GHPgayfut4A==; In-Reply-To: (message from Robert Boyer on Thu, 29 Feb 2024 13:40:14 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280808 Archived-At: > From: Robert Boyer > 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.