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#45751: [feature/native-comp] emacs keeps running 100% of CPU Date: Mon, 11 Jan 2021 05:25:20 +0200 Message-ID: <83r1msf93z.fsf@gnu.org> References: <87k0slu13n.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35796"; mail-complaints-to="usenet@ciao.gmane.io" Cc: edouard.debry@gmail.com, 45751@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 04:26:09 2021 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 1kynqL-0009FQ-AU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 04:26:09 +0100 Original-Received: from localhost ([::1]:44802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kynqJ-0004DR-Vr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Jan 2021 22:26:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kynqE-0004DD-JZ for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 22:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kynqE-0001o9-B6 for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 22:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kynqE-0004Lb-6g for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2021 22:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2021 03:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45751 X-GNU-PR-Package: emacs Original-Received: via spool by 45751-submit@debbugs.gnu.org id=B45751.161033554116685 (code B ref 45751); Mon, 11 Jan 2021 03:26:02 +0000 Original-Received: (at 45751) by debbugs.gnu.org; 11 Jan 2021 03:25:41 +0000 Original-Received: from localhost ([127.0.0.1]:55328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kynpt-0004L3-Hi for submit@debbugs.gnu.org; Sun, 10 Jan 2021 22:25:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kynps-0004Kp-3Y for 45751@debbugs.gnu.org; Sun, 10 Jan 2021 22:25:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57852) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kynpk-0001cw-GY; Sun, 10 Jan 2021 22:25:32 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1645 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kynpP-0008RV-5E; Sun, 10 Jan 2021 22:25:26 -0500 In-Reply-To: (bug-gnu-emacs@gnu.org) 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" Xref: news.gmane.io gmane.emacs.bugs:197674 Archived-At: > Date: Sun, 10 Jan 2021 20:14:53 +0000 > Cc: 45751@debbugs.gnu.org > From: Andrea Corallo via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > Compiling > > /home/edouard/.emacs.d/elpa/color-theme-sanityinc-solarized-20200805.603/color-theme-sanityinc-solarized.el... > > I see a similar issue with sanityinc-tomorrow.el, the compilation is way > slower than any other one but it completes eventually. I guess is the > same issue you see and with sufficient RAM also sanityinc-solarized > should complete. > > In case of of sanityinc-tomorrow I think is because of > `color-theme-sanityinc-tomorrow'. This is a single function that after > macro expansion becomes enormous. > > We need to make the compiler robust against these corner cases, I'll > have a look this week into adding some logic for that. Maybe we should have a "no-native-compile" cookie for these cases. After all, compiling a theme will not really speed up anything important, right?