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: Fri, 01 Mar 2024 18:34:30 +0200 Message-ID: <86h6hprjvt.fsf@gnu.org> References: <86edcvrpzg.fsf@gnu.org> <87bk7yur6p.fsf@gmx.net> <877cimuo5n.fsf@gmx.net> <86msriqfws.fsf@gnu.org> <8734tauml5.fsf@gmx.net> <86jzmmqdbv.fsf@gnu.org> <87y1b2t5wx.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26307"; mail-complaints-to="usenet@ciao.gmane.io" Cc: robertstephenboyer@gmail.com, 69480@debbugs.gnu.org, acorallo@gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 01 17:35:57 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 1rg5rZ-0006aL-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Mar 2024 17:35:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg5rD-00008a-Fn; Fri, 01 Mar 2024 11:35:35 -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 1rg5rC-00008R-LQ for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2024 11:35: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 1rg5rC-00057B-69 for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2024 11:35:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rg5rd-0000vB-Qv for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2024 11:36: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: Fri, 01 Mar 2024 16:36: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.17093109123475 (code B ref 69480); Fri, 01 Mar 2024 16:36:01 +0000 Original-Received: (at 69480) by debbugs.gnu.org; 1 Mar 2024 16:35:12 +0000 Original-Received: from localhost ([127.0.0.1]:37336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rg5qp-0000tz-Ue for submit@debbugs.gnu.org; Fri, 01 Mar 2024 11:35:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rg5qm-0000tk-L5 for 69480@debbugs.gnu.org; Fri, 01 Mar 2024 11:35:10 -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 1rg5qD-0004ng-Tk; Fri, 01 Mar 2024 11:34:34 -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=MRdvPpGYUX1s7ZUH6eVCJXp4PnSj6RPSGCrVJ6IBBGM=; b=M9mq+NCFXRJh opdaXSrGdYJFmQ4qFbhvkhQJxW7hcYS+mPqZ9a0P2HjjVIDVupSeYGuLsMoVf85hLVFPc9TKLfpSM DeRGiYD2MAw1l/FW6TXR8h2tZqpwtQj1QbtnX02GlI+6gPXi9rkJMwyfSCQejBkmbt1YK1nBxrTZY X5mg/CSOvMUNjYHojVtlT3QLA3LO9J1J51xvI9gHpVJy7JmrsQsGqtTPRta3o2cVYtxPTj/dtm3v5 DLMt968DLmHGcQ1U+dB8ERJz0DtcUIqKdI81RDEdg2/y9CnM4HyCiNdjRhWJCxE2sZNmt3hYQmmzQ o/WS+SoyjRm4ApvJKuYLnQ==; In-Reply-To: <87y1b2t5wx.fsf@gmx.net> (message from Stephen Berman on Fri, 01 Mar 2024 14:53:18 +0100) 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:280867 Archived-At: > From: Stephen Berman > Cc: acorallo@gnu.org, robertstephenboyer@gmail.com, 69480@debbugs.gnu.org > Date: Fri, 01 Mar 2024 14:53:18 +0100 > > On Fri, 01 Mar 2024 15:41:24 +0200 Eli Zaretskii wrote: > > >> That says almost all memory and CPU are consumed by `build-sieve': > > > > This is skewed, use cpu profiling instead of "memory" profiling. > > Ah, ok. > > >> But I don't see how that bears on the difference between native and byte > >> compilation in my timings versus yours and Andrea's. > > > > My suggestion was to compare profiles in the byte-compiled and > > native-compiled cases. > > > > Btw, are you running both cases in the same session? If so, don't: > > restart Emacs and run the other case instead. > > Ok, I've now done that. Here's the report for the run with native > compilation: > > 12599 95% - command-execute > 12487 95% - funcall-interactively > 12486 95% - eval-expression > 12485 95% - # > 12485 95% - # > 12480 95% - eval > 12480 95% - progn > 12367 94% - benchmark-call > 12367 94% - # > 12367 94% build-sieve > 113 0% - emacs-lisp-native-compile-and-load > 113 0% - emacs-lisp-native-compile > 113 0% - native-compile > 79 0% - comp--native-compile > 37 0% - comp--fwprop Why are subroutines of native-compilation in the profile?