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.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Sat, 04 Dec 2021 09:48:46 +0200 Message-ID: <83bl1w7qu9.fsf@gnu.org> References: <83wnkm94oq.fsf@gnu.org> <87y251vdeh.fsf@gnus.org> <87lf11tlzf.fsf@gnus.org> <87r1atrsp9.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11595"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, stefankangas@gmail.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 04 08:49:30 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 1mtPnV-0002qU-MK for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 08:49:29 +0100 Original-Received: from localhost ([::1]:33456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtPnT-0005IS-Lc for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 02:49:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPmx-0004aK-Nd for emacs-devel@gnu.org; Sat, 04 Dec 2021 02:48:55 -0500 Original-Received: from [2001:470:142:3::e] (port=52486 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPmx-0001xR-Fo; Sat, 04 Dec 2021 02:48:55 -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=/u6jDVeJQZRSLy763flJZUzQ2b50oFwJanabXqexJow=; b=nH1Laht8BP7r AV75fsK2CHdT1lvboIHNWHvpmsPq/l9aD+G5Nwut9OYQiSoxxlVrYeLC2DjJEplohkM+JnQUhOlpu oASv7a/tarNEi2EsNVItap6+7FxljwoF3BvJzLNHjOcs6eps/9v8pg9kTHuQfcn68CgI3kvZAs7jX jng6UJ8a6vbjwocHlqTERgXi0AjuE2RTD6SSd0Il80VIdlebn+T5uJI1m7m0nQutLDN3VXrDwaKVs f3zbSYBGztwUIE7oAk4ku34STbWVyiI2DpkodmkXe0BNPYO5VtIzPHfBE1lTS1hbK6PuvtVbZi6RI FxkrV9EDOLN8VQVgC7URhw==; Original-Received: from [87.69.77.57] (port=3606 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPmx-00018W-7W; Sat, 04 Dec 2021 02:48:55 -0500 In-Reply-To: <87r1atrsp9.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 04 Dec 2021 03:48:18 +0100) 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:280896 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , emacs-devel@gnu.org, Andrea Corallo > > Date: Sat, 04 Dec 2021 03:48:18 +0100 > > This reminds me of something I've been wondering about, but never > actually looked into. One of the things I was expecting nativecomp to > make faster is byte compilation, but it doesn't actually seem to make > any difference, which I find really surprising. Here's my test case: > > $ rm lisp/gnus/*.elc lisp/org/*.elc ; time make -j8 > > This is around 10% slower with nativecomp than without, which just seems > backwards. IME, byte compilation gets significantly faster once bytecomp.el, byte-opt.el, comp.el and comp-cstr.el are natively-compiled. But I never benchmarked that, so it's just an impression from watching the compilation run.