From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: master 289000e: Merge branch 'feature/native-comp' into trunk Date: Mon, 26 Apr 2021 17:33:30 +0200 Message-ID: <87eeexm56d.fsf@telefonica.net> References: <20210425182503.25223.81072@vcs0.savannah.gnu.org> <20210425182508.6CC7C2094D@vcs0.savannah.gnu.org> <831rayktot.fsf@gnu.org> <83v989jmuc.fsf@gnu.org> <83czuhjh0r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38638"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:0225xZGbYyViT0tEhfsQoDyoMVY= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 26 17:34:46 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lb3G1-0009la-Hh for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Apr 2021 17:34:45 +0200 Original-Received: from localhost ([::1]:58620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lb3G0-0005CG-KZ for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Apr 2021 11:34:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lb3F5-0004Xd-Gi for emacs-devel@gnu.org; Mon, 26 Apr 2021 11:33:47 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:33878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lb3F3-0006sU-Ra for emacs-devel@gnu.org; Mon, 26 Apr 2021 11:33:47 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lb3F1-0008T6-9v for emacs-devel@gnu.org; Mon, 26 Apr 2021 17:33:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268478 Archived-At: Alan Mackenzie writes: > I must be doing something differently from these people, but I can't > identify what. 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%? native-comp speeds up Elisp, and even then there are lots of cases where the change is hardly noticeable. Let's say your code spends 90% on the C core and 10% on Elisp. If native-comp brings a 2x speed up, you'll only observe about 5% improvement. C code is opaque to native-comp and puts a hard limit on how much it can optimize Elisp. Thus I hope that in the future more and more code will be moved from C to Elisp. And other areas can benefit too: one thing which IMO has lots of potential is to native-compile regexps.