From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Sun, 05 Dec 2021 17:52:18 +0100 Message-ID: References: <83wnkm94oq.fsf@gnu.org> <87y251vdeh.fsf@gnus.org> <87lf11tlzf.fsf@gnus.org> <87r1atrsp9.fsf@gnus.org> <8735n85fa5.fsf@gnus.org> <87r1arskmq.fsf@gnus.org> <87r1arsjpu.fsf@yahoo.com> <87ilw3sjlr.fsf@gnus.org> <87r1ar4mi2.fsf@gmail.com> <874k7nw32n.fsf@gnus.jao.io> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25582"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 17:53:27 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 1mtulS-0006SD-Bp for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 17:53:27 +0100 Original-Received: from localhost ([::1]:42370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtulQ-0007Sn-Gt for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 11:53:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtukW-0006mB-0E for emacs-devel@gnu.org; Sun, 05 Dec 2021 11:52:28 -0500 Original-Received: from mail-oln040092071031.outbound.protection.outlook.com ([40.92.71.31]:16548 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtukR-00074z-Dw; Sun, 05 Dec 2021 11:52:27 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cI15LyLvZcsQuYCz4gogDgkqC+sPJbe9Dhk2tB+6DT0CiK7v/Dt5mIPAQd3PWetVo6bDsSSO9Gzgie1x1s+VVJ+W9Yswd8Zc0ISpvg5ZLVqvIPGY2oSGCALxAlw2H7MEKnoxOFCUHFqzEJVPreYpz61Yok0KdjAFMphMn37JfhGh2721WibSJGQKtdCSZUDbdW8ZafbPABhXincmxPhlUPJdYnmlfPa8+tsQK2REHZpSc2TTXZAp2LPQC+PBKgBFj0T3DCaDmJIUx+RaR6n5t4J2mVZ96bhaaT8097/yWMQZXAZ6dEw/rpwMsLzeBXLMOAE9UhIa5m61qA+fCE08/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/nJgfm9brF+QQ26GDN1T7th6oW+4YSh9pnotBaHSDc0=; b=Ds/CH5eR7dGGj63j5ybdO0na7NEwt9aAKqOgNRflLNZVZtwV+MXU2SpI3ZYkUrnBHAPvwiQgckJbyK2o4xF+lI6Gp9ilnkPVJbIKfuYCdxAIU85OYj5ojQxgIr5ZeHEor3re1W0Ypsp8ANq+kqYJQRqysMYlHgn/MAWRAXweH48lvGQNhU4TSvzIbTHGzry54p/GpXkzqGztbwtp0zt4/eGd8FD/rhVTsk+tvgRhAtxMwIOYFnuBPJPSv5fObUJI5xfBN4jG7z7aEaUsAIznM9xE/ubwFXpM0mU8uJA98exKGg3fxCY54LbBiY5eZPsCYA+7k0PlK1MT9Qbelv+rDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/nJgfm9brF+QQ26GDN1T7th6oW+4YSh9pnotBaHSDc0=; b=XrSg63I4KigbG6oenFIrX4mHzJH0qQSrK2eK/RvZnNNQdgZviYM2Qr3i+ITOASkOWyitaT2d07TMe+zDn3uQbWBzTKcU0mzGc/tj8TfAODgSvEgh/5Nbs0ys3cmNhnwRrTa9NgrmIYypEW+pUYOsXqBBb14gDJVcio6bWJBofdHcXD6Prxcv9r+D5x+Iwm9t6eaeJtI3cQYjtm37gu/tHlm1Fi7OXhFnyGIqzWZGOUBUgC4/7tBgqZs+KAMO0U3Co5VexKjc6tBH77eEutdY9iCfraDZjCNG3j52XXAtiXgW7rQDcQ4ewuiw4kzOhPHNIOvQcbb2ouJmAw+TakHHpg== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM9PR09MB4675.eurprd09.prod.outlook.com (2603:10a6:20b:2dc::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11; Sun, 5 Dec 2021 16:52:20 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a%4]) with mapi id 15.20.4755.021; Sun, 5 Dec 2021 16:52:20 +0000 In-Reply-To: <874k7nw32n.fsf@gnus.jao.io> (Jose A. Ortega Ruiz's message of "Sun, 05 Dec 2021 14:15:12 +0000") X-TMN: [vSP6Xyg801tv4VMXks/RFprpR3zh0LQp] X-ClientProxiedBy: GV3P280CA0022.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:b::12) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87ee6rj8ot.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by GV3P280CA0022.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11 via Frontend Transport; Sun, 5 Dec 2021 16:52:19 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 580e4baa-5e87-4598-2e58-08d9b80f99ea X-MS-TrafficTypeDiagnostic: AM9PR09MB4675: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nzlQouYeXRJtyvnNEhCo3jVQlwRzbM1MBK4eRlFZStBHHFyk/Dv3ePX+Rk4m/au1nf++ipVftiNuGjuSIv7TLYe47fdwf/INs6D9LLrg9yRoAWVfsfLV8xdRn8YpiTVW6XwJkpjWOJI9grR2h9mxw/3hD0GQfnfyZBYXbV1s/nTIbdWQkf8KOfhYytQgvxbtjWkAJbfrh3TlPhj3mq7D+Hi4sBapzCyFxlesCkMLgfdFAHFKfpj76upeeXWx1JDctDiMS2paJkFN41M1/owcw/CR/xLD/waUfG3sb3wDGHwTylw8HSPrnBoagCqtQ/5Ujr6htiVj7VzmyLur+R0Hio0NTI28E+wtn9ogfNRBnFE979/EVSu6mEvoqptZliwjCmXgeT6Lie/WAGoVGk1ZpDGN+azCf1w0lRTLtpYPtNIDq4WSYXoIDh+pZiPzY7P7d9tu6qS/vdlzsC3Ov+ed0Rss1baz9fs4X0f95Eh+hQagoZZVHqgzVDqfCr0jJDMgSCoSa5g4gHjRQyEHallsaJKCmyPD2dqFcQpKIiA1vwfYmplJLbGUMrBX2flWiBzlvU/50ixNYl4VpiZmkNjciA== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1C/PHXcKUVhl9pgNf91XgLOfLcUPWHz4DsVx9WoXlKd6OOynN5anBF1qlWTA?= =?us-ascii?Q?XiGakNT0mmsDZXPPpUeVaWayuanzHzJX2uVT9nskzlkaVUbjQUeutqLoC6Av?= =?us-ascii?Q?+XjbvbodZvB+BmrFZwFMY5UKAOQFqDUVZJuEnwaaEebgx77xp3F5NXCIsKsy?= =?us-ascii?Q?6EbVVNGS1lmYhw7PdZHImGqeiLviNgBXwdcTDBVVqVJtMpVrHj/Mi1Vze8Am?= =?us-ascii?Q?8HkzxoQf3ilv4T0FtPtJyOx5bQF8CyKlPUkRN+/zo3IfAxZkGQDZMxa0c/3S?= =?us-ascii?Q?cTUHb4UAZ/7BQzJ/G/pHsWp8veuoKlt/akkh3l4Gm/wKQ/QYFT4kbENVds2R?= =?us-ascii?Q?TMC+mMImJFMhhQ7Tww2PES+iOSzwa0p/k2Z7cvy8SETPygdcLT1DaIFNIXIt?= =?us-ascii?Q?ZgC6oOQkCX4JC/a9qLxUUSfVN4Ofw3oc/ncZ67olxLmFo9imet4fYqVPFvK+?= =?us-ascii?Q?1ZRfCXCWOTLoL2D/gEJ41pjabfZsPGceGqyX/9ItR+DAug2qB9GijGxjuBQd?= =?us-ascii?Q?/s0sWn0u4Nkl0dGEW9RrUOK33SsjYxMwd0VTh7v/eGzJc18cQxKdUnbkFepD?= =?us-ascii?Q?lzSqcRLAcOnLcqidjCaPZw90aZuMWfmOlFyFZveCCg/NMcQsaRZjqHW4rFhj?= =?us-ascii?Q?Oe X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 580e4baa-5e87-4598-2e58-08d9b80f99ea X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2021 16:52:20.1553 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB4675 Received-SPF: pass client-ip=40.92.71.31; envelope-from=arthur.miller@live.com; helo=EUR03-DB5-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:281010 Archived-At: "Jose A. Ortega Ruiz" writes: > On Sun, Dec 05 2021, Tim Cross wrote: > >> Lars Ingebrigtsen writes: >> >>> Po Lu writes: >>> >>>>> Most distributions will probably release Emacs 28.1 with native >>>>> compilation switched on. >>>> >>>> Why is that so? Most distributions only build their Emacs packages with >>>> the default options. >>> >>> Several distributions have signalled that they want to ship Emacs with >>> native compilation switched on (and at least one said they're going to >>> be doing a full ahead-of-time build, if I remember correctly) -- >>> presumably because that'll give their users a faster Emacs. >> >> Does it actually give that much of a performance boost? It has been a >> couple of months since I tried native compilation in Emacs 28, but when >> I did, I noticed next to no performance improvement at all. In fact, all >> I did notice was lots of warnings and significant delays whenever I >> updated packages. > > FWIW, i've used native compilation in master builds on and off for a > couple of months, on GNU/Linux (debian sid), and haven't noticed any > speed difference either. Last time was this week. The warnings are > gone, not sure if it's because i configured some flag back in the day or > because it's now the default, and the compilation delays are not too > bad; but, as i said, i don't notice any difference other than the fact > that the RAM comsumption of emacs is about 80% higher for long sessions > when i use native compilation (i use emacs for virtually everything, > it's my X11 desktop environment, and have a moderate amount of packages > installed (around 50, i think)). > >> I've actually never noticed any speed problems with Emacs. Where there >> are delays, it is due to the synchronous nature of what I'm doing rather >> than basic performance. > > That's also mostly my experience. The only times i have to wait a bit > (some seconds) are for eww to render some pages (and that doesn't happen > often), and those waiting times don't seem to change at all when i > enable native compilation. > > I'd be curious to know where people are seeing speedups. I see speedups in like entire Emacs experience, since the very first incarnation of 'gccemacs' when Andrea announced it. When I sometimes compile Emacs without native compiler just to test or compare something it feels like I will never go back to Emacs without native compiler if I don't have to. It is not like the native compiler enabled something I couldn't do before, if it is than it is not my use-case, so I am not aware of it. But it is overal resposivness of Emacs, in Helm completions, searches, etc. I haven't done som formal benchmarks, but for me it feels more responsive and speedier especially when there are lots of files and buffers. It depends on how one use Emacs of course. Personally I use Emacs for almost everything I do on the computer, and I like Helm, so there is a lot of completions and searches I do.