From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0DMQCkgGM2N7AQAAbAwnHQ (envelope-from ) for ; Tue, 27 Sep 2022 16:18:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eD31CUgGM2O3HwEAauVa8A (envelope-from ) for ; Tue, 27 Sep 2022 16:18:48 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C3C021DBD for ; Tue, 27 Sep 2022 16:18:47 +0200 (CEST) Received: from localhost ([::1]:59538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odBQ6-0006Jb-Ah for larch@yhetil.org; Tue, 27 Sep 2022 10:18:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od9vL-0002bq-UJ for emacs-orgmode@gnu.org; Tue, 27 Sep 2022 08:42:55 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:34596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od9vJ-0006FM-3I for emacs-orgmode@gnu.org; Tue, 27 Sep 2022 08:42:55 -0400 Received: by mail-wm1-x333.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so765878wmr.1 for ; Tue, 27 Sep 2022 05:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=tx1x7M9Rivuop5WKeILVZQc9BDKhv6pIxmrYllGiZjw=; b=dbmFzHsVrA7CwPTvYegfoJp3/pYb10qJ2paU6TMJYjWqHJe228vDgJy4DOyxth8Ky0 4sTyQvlEx4qKe+5hJBDouu8P0Gs7L3FWqnQyuldXkjrOii3z/3ZhSplBxX8Ld0XOujUc V05HcevLxbVI4S1/p00sfxtiO7lrONwTUBzrFXjlPInW8X0fo1eeAlGTXamCEzMIIu3h DlyIZkRLmIKVj0rzHM0VVyjEM86ck9FmX63uuqGvoW22eEOdo5BrNW7MqSJA+Kr/3/+l 6RGlGfP9OA9YTagX3t8Bq1dKlztcfRPlfSnbXONF4xpHGz1FKY0yt4QhO64dKT5FT2bw /bAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=tx1x7M9Rivuop5WKeILVZQc9BDKhv6pIxmrYllGiZjw=; b=cGE6mQlotLJhXQxjHMonLhaaA1RiLKgoV8DFuI+MNh0qBvQnRvUNCLxlAGFw3fSMmx EB6i4ZQyUbfQJN9ur6+GWig3qT23IV3ru/b4fo+cEaURoNDB3qtPUYeGz9lwEtp6pK0R Hm2Hum4dWWBDzpzg5/aJSoR6WtqPvnHwV+21QhUBifSDuiagdkELoXdtdHVvw40hwGXY KCVPLpDX8q+74ryPDniSWL5JcQrWdKNHkWxjHQrCFfJRKb3/kSxoyCJr2QLdc72Fusrp J2sin8ETFFaW1hiefy7HHMsFivfgwT29FbEqSIQKNxNhh3ZFvhSe8M4c+fyLlDZjiPoS bQuQ== X-Gm-Message-State: ACrzQf2RYNGQ6aBDmDWXu3EpmXWcwC/r1P2uTAVVp5qINdEuPMiaxsEt sXFKn9BKq/e5TcU5fFk1UlsMT3f9g4AoedCJwJQ= X-Google-Smtp-Source: AMsMyM4szmWO3gV5RlHVEwis/kV8vBcTUuHlMPpryTvPt38LcF4i2+LJMUK/KTho4esiIKJnNgQ+A/m31byCsLpBRBE= X-Received: by 2002:a05:600c:1ca0:b0:3a8:41cf:a31f with SMTP id k32-20020a05600c1ca000b003a841cfa31fmr2573626wms.161.1664282570619; Tue, 27 Sep 2022 05:42:50 -0700 (PDT) MIME-Version: 1.0 References: <871qry7nmg.fsf@localhost> <875yhaf9mw.fsf@localhost> In-Reply-To: <875yhaf9mw.fsf@localhost> From: Luca Ferrari Date: Tue, 27 Sep 2022 14:42:13 +0200 Message-ID: Subject: Re: emacs really slow when inserting a new source code block To: Ihor Radchenko Cc: emacs-org list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=fluca1978@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664288327; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tx1x7M9Rivuop5WKeILVZQc9BDKhv6pIxmrYllGiZjw=; b=coBvErvENoujH8e412I5EVANjFnVrS2JLgR/sRhtqhKy5YMOghuFkSQWyASBtltIbBAv0r V5UeHyNd7AlZddZKZgSKZ2w/fDZB753mLxTVefrU3ny26xeu1QaPfxP8OFnsRo9zSO5B4p Etm6ActxAjXwqvoJV46sNMsmBxfkNOot/pu52uLPIdJZVtc5MXL5DQV+WaAMjx3eHS469y ajeUvnOBPlQYI7eCk/36WKk1zpR312GNeBenecLP239M8vccZOCLcQ5QZv1Nir910qtK7R y7u0+A3mzDuXgR4kK16F4ljvzI60x93rFImCPxehpujRomNLInA0pifxxEA+QA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664288327; a=rsa-sha256; cv=none; b=IfDEBwFOrAV33dXcniehAdVwsdBzpEtOh7xPYxhHb/9FAyN/ZQ4l7WfeF5J4A2JVYVMUfR KoIPV+vxsA5D6zJJpwtSlA6v8KjylvgLZ5bE9W/EeJUc5jEsqkNefcGk9V8omLeC5Fq991 /0yWWARByAVSb3Y46cwML0/sGM+WHXuZh1feAM2ptWa6WArbHbf6dORAqWfzUvSgM4sdHQ FB6rAH/cCPv05JGKha+Dad1ZC2qUhfNDVduffvhw33THZ/dmAA3Rl6T6wGQy+slz8IumE+ BOXuE4rgCtSJqB6FibR/dWAVQx5A7zJpUpHdaySDf4tK8j2QAvpESBJP0T621A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dbmFzHsV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dbmFzHsV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C3C021DBD X-Spam-Score: -2.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: l/Abl3CxYY7A On Mon, Sep 26, 2022 at 5:16 PM Ihor Radchenko wrote: > I think you tried to use M-x profiler-stop instead of M-x profiler-report > M-x profiler-report show yield a new buffer displayed the profiler tree. > M-x profiler-write-profile will work from inside that buffer. I was careful to do the steps in the right order, and my message buffer tells the profiler has been stopped after the write profiler fails: CPU and memory profiler started Mark set Auto-saving...done Saving file /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org... Wrote /tmp/.!home!luca!git!talks!perl!perl5!PERL-VARIABILI.org.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org syntax error Saving file /home/luca/git/talks/perl/perl5/examples/autovivification.pl... Wrote /tmp/.!home!luca!git!talks!perl!perl5!examples!autovivification.pl.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/examples/autovivification.pl Mark activated Mark deactivated Mark activated Saving file /home/luca/git/talks/perl/perl5/examples/autovivification.pl... Wrote /tmp/.!home!luca!git!talks!perl!perl5!examples!autovivification.pl.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/examples/autovivification.pl Mark set Auto-saving...done Saving file /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org... Wrote /tmp/.!home!luca!git!talks!perl!perl5!PERL-VARIABILI.org.~undo-tree~ Wrote /home/luca/git/talks/perl/perl5/PERL-VARIABILI.org profiler-write-profile: Wrong type argument: arrayp, nil CPU and memory profiler stopped Reverted buffer > Another thing you can try is setting org-src-fontify-natively to nil in > your config. > I'm trying it right now, after reverting the buffer I was editing (I applied it with M-x set-variable). I will see if I suffer from other slowing down. Thanks, Luca