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=89douard?= Debry Newsgroups: gmane.emacs.bugs Subject: bug#45751: [feature/native-comp] emacs keeps running 100% of CPU Date: Mon, 11 Jan 2021 09:10:21 +0100 Message-ID: <87mtxfj3ma.fsf@gmail.com> References: <87k0slu13n.fsf@gmail.com> <83r1msf93z.fsf@gnu.org> <87turnvr2k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.0; emacs 28.0.50 Cc: 45751@debbugs.gnu.org, Andrea Corallo To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 09:11:30 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 1kysIT-0001pV-MJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 09:11:29 +0100 Original-Received: from localhost ([::1]:48092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kysIS-0004vl-8i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 03:11:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kysI2-0004vR-8v for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 03:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kysI2-0005SH-29 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 03:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kysI1-0003Me-Td for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 03:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=89douard?= Debry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2021 08:11:01 +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.161035263912893 (code B ref 45751); Mon, 11 Jan 2021 08:11:01 +0000 Original-Received: (at 45751) by debbugs.gnu.org; 11 Jan 2021 08:10:39 +0000 Original-Received: from localhost ([127.0.0.1]:55524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kysHf-0003Lt-8m for submit@debbugs.gnu.org; Mon, 11 Jan 2021 03:10:39 -0500 Original-Received: from mail-pf1-f177.google.com ([209.85.210.177]:42353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kysHe-0003Ld-08 for 45751@debbugs.gnu.org; Mon, 11 Jan 2021 03:10:38 -0500 Original-Received: by mail-pf1-f177.google.com with SMTP id h10so10475650pfo.9 for <45751@debbugs.gnu.org>; Mon, 11 Jan 2021 00:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=tz0cjgIyZ3/D5ICgkfd4OaSqYsaZOaORL32JHzgTrVo=; b=UuK4HpKUmlrtBu0pM7iD/v1FTY+1RfGz4MQoVDbw8NaLGAKstEiziFOtmU44I7YZJJ j4WNF1rXNOPT/YSwJJ1Kuu1zR0oVf4eNWseO9oKOzJbAl26xGL+y7NyA9WVlgLznyV3I u++rdUxDjFZj0ddVOWt3mprqybLQV5BVH61IQ8G8jM+UJqCL5Hz5qt9lQh4eiCq8AJXX JPQUUb/EZpliiyZCs1YYi1xUlE019mOCV2ZI1PSqbGU1JilVMx4vlqSjJlHY5YqEj3L1 Rgw0XxMbgA5tnhInlSeiEQkcb/GB1wevXKUDsaPLU+WMzBvaYSW7jM335Z+jovRxzDku Jodg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=tz0cjgIyZ3/D5ICgkfd4OaSqYsaZOaORL32JHzgTrVo=; b=AfqBiLLTu91YJHHMvZDHhaD98T7I5wBIlfUSewob8Fb9ODgYUypQotnrR3M+ytRQyc xak1NfNlVzKH74fASsBP094AFW91DYY5LfgrNExwfMdRi41Y2KylGXXmBo7NROVXsyuj 07CGsyb5HXVNC9wfiAvNK2GhBTQvXnISEmAY47j2tig/TK7SjiZqZAjaq93UNlnU6yUz xPclBVIR3T0g5ijQ6eS9W++Z0kLhjg2tHYDDwtzz5gt0Mt7jRqmwsp3LEQEcG1l7UTZd Y3/E2mnGLXqk8dICEi4YRGlcc/BSu1LnX8BNqVzn9AksDb5Iuzp8kObfDt8kFiJ1/CmK vR2A== X-Gm-Message-State: AOAM531yX/0HUtiPdAxHJJ6uDpEuL4xOXo2vCCsCWF7cphxDuj34S8fN /DvikM8ArNtQQD8MWNx41zMgIznSAzTt8Q== X-Google-Smtp-Source: ABdhPJwiXaE0VPfkMv0kqKEWqSRYNzuCFfOCdRBuLpIw1umK+CTYvHWRfc+5acqyGkoOss21SNJnhw== X-Received: by 2002:a63:2cd:: with SMTP id 196mr18773229pgc.398.1610352632222; Mon, 11 Jan 2021 00:10:32 -0800 (PST) Original-Received: from paquerette (176-142-29-14.abo.bbox.fr. [176.142.29.14]) by smtp.gmail.com with ESMTPSA id d36sm19330380pgm.77.2021.01.11.00.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 00:10:31 -0800 (PST) In-reply-to: <87turnvr2k.fsf@gmail.com> 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:197677 Archived-At: On lun., janv. 11 2021, =C3=89douard Debry wrote: > On lun., janv. 11 2021, Eli Zaretskii wrote: >>> 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=20 >>> compilation is way >>> slower than any other one but it completes eventually. I=20 >>> guess is the >>> same issue you see and with sufficient RAM also=20 >>> sanityinc-solarized >>> should complete. >>> In case of of sanityinc-tomorrow I think is because of >>> `color-theme-sanityinc-tomorrow'. This is a single function=20 >>> that after >>> macro expansion becomes enormous. >>> We need to make the compiler robust against these corner=20 >>> 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=20 >> cases. >> After all, compiling a theme will not really speed up anything >> important, right? > > This is more or less what I advocated with a native compile=20 > blacklist. > > At the moment, it would help me if it is possible to toggle=20 > native compilation. > In my config file there is : > > (setq package-native-compile t) > > If I set it to nil, does it mean that, on startup, emacs will=20 > not try to natively > compile > any packages ? Answering to my own question, it seems that no. Is there an emacs=20 command to kill the native compiling process ? It seems that closing the log buffer=20 has this effect, but there is probably a better way.