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 IEPsFER0NGMTDgEAbAwnHQ (envelope-from ) for ; Wed, 28 Sep 2022 18:20:20 +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 SD3eFER0NGMHawEAauVa8A (envelope-from ) for ; Wed, 28 Sep 2022 18:20:20 +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 DC3D1975B for ; Wed, 28 Sep 2022 18:20:19 +0200 (CEST) Received: from localhost ([::1]:47450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odZnH-0001Ho-0n for larch@yhetil.org; Wed, 28 Sep 2022 12:20:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odWuE-0002Mh-6J for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 09:15:19 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:46053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odWuC-0006Wv-0p for emacs-orgmode@gnu.org; Wed, 28 Sep 2022 09:15:17 -0400 Received: by mail-pf1-x434.google.com with SMTP id 9so12462331pfz.12 for ; Wed, 28 Sep 2022 06:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=irU4D5MKGQRhvpIISjXvpEHYduw9WPHQLOmaSNx3X4A=; b=qdq6rlCzznwfd4hfZinpv2Cry5Y3Y5Cp2N09UHKLeD7/uV8PdXjYCoAbfkqAaVVxHA qbckn+aZdSssta3NcyKZblxQlxYksafiwZCGEj7XEIf/fOg88sFhmpFup0mCz1rmN1J+ m9/JgwE/oUkQTwzoC7Wx4ZA6qyTSKdU881gsiuopQSExEfjRi7ZffczG5hqxWdZg6qQP EAXA7yCugGx1lr998VSP7/Xgl4/7QtHrSsIZK24QQvP3dEKH6YYv5tMXlFM0k3nzOyTO Jv30Y0AGWDm2Mt4D6KtUp43AArKtIyF2fLByDLFMJ4Onn610VkZuVt08vLiUEDPS0tds TU5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=irU4D5MKGQRhvpIISjXvpEHYduw9WPHQLOmaSNx3X4A=; b=ep+220l46bKPBAJzDxV20DWtGLBfTOf+Bb8RUIoKClX0/FGEww9XgEjJimOtU67B7D nIUdHdRPxaAIxdvUDRi/oSrvwQfe7PaXPkkCIxAvuOxZljUwzal4OhmRXUR85OO/66Oe 7IuYAjoG+YAvz7ovNyrndZWV8r9QcjyVjbwCUhimvHml95DIsHEMEMe4zWTuhETNuPeu UKG7+B0j8Uj+RJhRa1ACo1bYGORhkwwdOkS7akmLIbVsxJ8pjO69SgljLeEDgdp5DOra WTJhHnH+Rp928wghE7L2vCeWN28N+6oMf9dr5s8Pjdm0W8KprOi3yXPEKe399gN4qdzT VJrQ== X-Gm-Message-State: ACrzQf3hfCwLvdAwLWFxuTri/JRiKpFj9WOZKcY6jLEhy4F/L/siFZnH ycjCpOryXOaocFB6gaiwvcV+LNv2yV/xYqYV X-Google-Smtp-Source: AMsMyM5wz2ypk8ogoZkOgm796ASsLW3NAKaDGXaHtZYth4oi6jyZtG/kOJgXevLW4dFaTkTwy8iVhA== X-Received: by 2002:a63:6ac8:0:b0:43a:18ce:f681 with SMTP id f191-20020a636ac8000000b0043a18cef681mr28696115pgc.244.1664370913048; Wed, 28 Sep 2022 06:15:13 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id x15-20020aa7956f000000b0052e987c64efsm4065889pfq.174.2022.09.28.06.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 06:15:12 -0700 (PDT) From: Ihor Radchenko To: Luca Ferrari Cc: emacs-org list Subject: Re: emacs really slow when inserting a new source code block In-Reply-To: References: <871qry7nmg.fsf@localhost> <875yhaf9mw.fsf@localhost> <87h70tgddk.fsf@localhost> Date: Wed, 28 Sep 2022 21:16:05 +0800 Message-ID: <874jwrfxm2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=yantar92@gmail.com; helo=mail-pf1-x434.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=1664382019; 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=irU4D5MKGQRhvpIISjXvpEHYduw9WPHQLOmaSNx3X4A=; b=R8lz0H6vIIoGGSacuNFiJe25mcdtRKgEUQchV9SnXaPZGFdBnyPaVbmXsdAaw+UB4znjRp yMYslooGKdrGFi3ipfP5lXyYsYuMhO2DCuFK8lJVxgUmCSzUAWHGSPGE4gfYy1vQy8KX58 5gxYgHe1hLdm2Esm684axtSUku7/3XW+zosSpx2UFkU5tsJRH/AGQ28avKplK+/dBj52Tl CrJ/20dJpdKFwUToks/zydy/XUSvCGb1Hdu/9bOLotIF4rr0acZa5S4PLd73vQ/6B5ltZS wVHh+KyL2pDNsZ51b7545iRG4Kf7rGZ16i6eKgPGf1ZYhLEQBvkNNkOx8/c5Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664382019; a=rsa-sha256; cv=none; b=Fmjgp0gfrcyKs/EMRpfyPjA0kgHHYPFZaJJuKvvY2y7Knf8s/vHWZOnFGiKf8vspnO9COu MfFm4YWuox3ADUZw9+BkbvGG0GSxWwN46y8tRN0/GQMcvrl9uDcWKcb+b2yDp+Wn0r/C4G DQU/vJ2lvjux8X1rH+jFEpEcl8z+D1tESnOUI67FwgfjrsZDnxjd+eUwD/u2yn06dvVoxK IY5Lry09evD0ACIrkCdhTSqyGXyMvWFzknNqi2JI5zayP/Jx71yw87JMcx4NFZQ79jgB5U bqFdXJi37KhluOhGGNdnuKiEFYWb4OFuCjjVnTqBRB7yPAgD0i9cFHb8OLQGrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qdq6rlCz; 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: -4.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qdq6rlCz; 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: DC3D1975B X-Spam-Score: -4.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5kFLL0vKf+dT Luca Ferrari writes: > No, there is no buffer named cpu nor memory nor something alike in the > buffer list. I have not idea except that you may have something really strange in your config. > Besides, I'm now more able to reproduce the original issue: I open one > of my perl-based org files, and it takes a lot, then I switch to > overview and it requires almost a minute to collapse all the headings. > Never seen nothing like this before. What if you open the file in a clean Emacs instance? See https://orgmode.org/manual/Feedback.html -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92