From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UPCgLXgRM2PZcgEAbAwnHQ (envelope-from ) for ; Tue, 27 Sep 2022 17:06:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GEyvLXgRM2ONSgEA9RJhRA (envelope-from ) for ; Tue, 27 Sep 2022 17:06:32 +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 7A83E2CE8A for ; Tue, 27 Sep 2022 17:06:32 +0200 (CEST) Received: from localhost ([::1]:32938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odCAH-0006ZQ-B4 for larch@yhetil.org; Tue, 27 Sep 2022 11:06:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odAXh-0005gG-9Y for emacs-orgmode@gnu.org; Tue, 27 Sep 2022 09:22:33 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:45734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odAXf-0005Ve-E8 for emacs-orgmode@gnu.org; Tue, 27 Sep 2022 09:22:32 -0400 Received: by mail-pg1-x530.google.com with SMTP id r62so5565811pgr.12 for ; Tue, 27 Sep 2022 06:22:31 -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=MfRFlztSorgE0IbjFU9kSxyjocPQZFEoJ+7FZzXU7yY=; b=k4qrQN5obVxNs8BvRP1M30nS2gqjPBXwfvYyLPa62g7pxkFqf//g1VicgvwWo3J5j9 k2MzTCvCiNjJ0Z4TNWkTSd/LpQXDHccUh0E4ym7kOdYzrXNQNQHXNXOY4psieQ3D4s6r 65ps4Xf0ZvARcVzAScPJtQXKb/PBT1nIlI5j0AMrdhbytXDnxXp9AA73yQ9T6v+U+cnb RV3/17pwt9roVA0a1ycdOTaKSjMj3J11mn5Ht/QQWwfKGrxrY3fpEb5OF+0fSMM3UINl 5bFDrOJxrp6leyVaF7Uu72DO41hU2wITRAUYDxa0zzf0eCwlxf7jQr646Gzujdu526wG ihwA== 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=MfRFlztSorgE0IbjFU9kSxyjocPQZFEoJ+7FZzXU7yY=; b=O+gu/raJwoflkSNUWKqeCYC/DVa7KJdhxF26rW7Xk5AvWQj/e8Ybwha+raJnmGzSXx 6AJLuAVoInWHsrC+M9AOhhMZj9JnPhW5aLBvSoSMrHBqXk5HhXhuOkZaBfw0VqsMtDMA uZsq1y7dhQQF17e3/2SB+KIGh/yAG2fYpybLhgQwymqNWJBP87EjOshRmoWHgHa7/UPk BUNdeLWsKDkztv9E9j89W7rNShq+0/p8yHcvZsuiCLND88eeKMqioEkBI/9fFxyH/EeS FGimy0rXqUKIt5rd45lanbGwDGENXis0RItYvRXL/N15Cqe5EdbIzN0YIyq90YoltAde 9vww== X-Gm-Message-State: ACrzQf2042UNN5QshZIiiw8eWazSVXBGlGE+TVD3M5NNsnQnsFhCYOzM eimBjPk/UB52EYUJwYiFn7g= X-Google-Smtp-Source: AMsMyM5XYqmjDwuD2TvbfvQizAC9aQ3ykDliT/675yK4vcWmiPS41xXbtrW4H3Buwwn/njsyx2i2hw== X-Received: by 2002:a63:4e16:0:b0:43f:3554:ff9c with SMTP id c22-20020a634e16000000b0043f3554ff9cmr2067433pgb.578.1664284950058; Tue, 27 Sep 2022 06:22:30 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id c10-20020a17090a1d0a00b001fb1de10a4dsm1324166pjd.33.2022.09.27.06.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 06:22:28 -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> Date: Tue, 27 Sep 2022 21:23:19 +0800 Message-ID: <87h70tgddk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=yantar92@gmail.com; helo=mail-pg1-x530.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=1664291192; 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=MfRFlztSorgE0IbjFU9kSxyjocPQZFEoJ+7FZzXU7yY=; b=MPikTMwzVF27DJZLj9x0Fs9/tsLxXYN38MOv5oUIkp3HQltLdf+spjBEyXKk+18vAyJOKj AAs26T5xX5W7JqShwFqwmSEYFrzQmVd4Gu4GfaG2klupApP+BJi0SLho3HBYWHi7GZYFzu Nk6a3aTjI3zunve/UCZreb1PjqczELD97Eoq3AX97c8jMhDd3Sy3N1DzkpH9914HF20irr 3Rrnb70tbiJldKl9UgF/J6hAqYt3igrLXr1Do9wT0BXva3VuhyH20ZPOMXAz8h7qnb4I6q xPm7l+oikltniKcekyTdDu/LiPrUzegOt6MhKP/fApov8hz0DRb3aD9AGRUnOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664291192; a=rsa-sha256; cv=none; b=rSF42ZKq/xySYZgmiZm4z7CIb0oaie+ARCTDGvdXAfjWXSOEEx1ZcwTcjnrg86+nnEBooZ 3A1HbVHXnuUenicQZvOzfyJH76epcp0wMKvv16y1NvKAQN2BsHOOfHk7xDbXb+i7yWCdIf 5P5I2iQDGaYdJifFrj2Ry9lcaPv7O2e2CJ6pFtdfQ16fDPl/1MBaeUlOh5a1XFc85VX/Kb IqCe3AcBf4K6WhkMKkvDstwHrlqhr68Ji8F0sBamNENuk0ToiR26k/04ZrfFBVh+/XIGdR d1p7qNsaooQkLbrj597td5ZwGWDlby2fy8acHchNcw4x8chqsyMwBwIeDVlTOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=k4qrQN5o; 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: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=k4qrQN5o; 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: 7A83E2CE8A X-Spam-Score: -1.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: XuBlCF1RKwBQ Luca Ferrari writes: > 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: > ... > profiler-write-profile: Wrong type argument: arrayp, nil > CPU and memory profiler stopped > Reverted buffer This is strange. Did nothing happen after M-x profiler-report? Can you try again and check if *CPU-Profiler-Report ...* buffer exists in Emacs (... will be current date and time)? -- 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