From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CAhGJ2W2emHEAwAAgWs5BA (envelope-from ) for ; Thu, 28 Oct 2021 16:40:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UGz4ImW2emFnMAAA1q6Kng (envelope-from ) for ; Thu, 28 Oct 2021 14:40:37 +0000 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 2B12032AD7 for ; Thu, 28 Oct 2021 16:40:37 +0200 (CEST) Received: from localhost ([::1]:39724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mg6a4-0001Vk-6o for larch@yhetil.org; Thu, 28 Oct 2021 10:40:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg6YS-0001Sp-5j for emacs-orgmode@gnu.org; Thu, 28 Oct 2021 10:38:56 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:42924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mg6YQ-0007HP-Ea for emacs-orgmode@gnu.org; Thu, 28 Oct 2021 10:38:55 -0400 Received: by mail-pl1-x635.google.com with SMTP id v16so4553071ple.9 for ; Thu, 28 Oct 2021 07:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=6uITwU9ofBN7uAT5+mIWWTLam/Rxn5G9tUfzfn9ffFs=; b=NhFahkOyYpXjQV+tTgxBni2FpHTj7uC8rjvMcsTnF5OxrmS0ILXubfZr602r48+BOh 5DriMNoGqKVpeOLlqgAzIeEJeyZM5dml1gWPXxN8exM7O9xeYZn3/SzQ8SwAhlfUeNJE NZrujWjUwWtBHFwA+dYKu5SK5X4ueDVlxTZyuT/twbP0wgZ3CntPR0hH/i0qlgIMDAH2 56dB6dq6fY0zfHuls+CxpvgVmU7vLUVDQYJvOUS6zoOYr/V0PMSOLD9R1jIhIr9lJbnB Ny11KqJla5YnxMB4NayMHNGCAJKwu9cudq+W/F+BmCPFmiCMDo9SUU0z/sdsz6vJeUT+ 1bVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=6uITwU9ofBN7uAT5+mIWWTLam/Rxn5G9tUfzfn9ffFs=; b=LOTKOTpc8K5lmmwBj3bsdfNNLyC2eSVR6gcbS/tNfT2TnWWPUiEdLNXBPSxhRvtHff FDfzn2CMn16nXEnQB97+67N7+Tot8UkCo31XteE66lgh9PHfbGCcSJKTk2rl+g9sGwV7 xf/sjiPWYA7pEpJga9DJyJJyb/LjvDdUyh+WLyKs7bW414lAZ3DNJth7/Ad+ZLB7AA7j Poq3q+XeVQxeoobsULVjQsYNqYL9xVRRdSmWVW+UcSsj1sCGBSrWMi3HJmi4uGXUEAF7 UkRDZe8pOf+Qr2xP2jYMt52eF6viQYJX7m5ZgqKCAmwGLG5yzL9M/TOcYfgXph1EZkXq oE1w== X-Gm-Message-State: AOAM531r6kMarp+rBK05Y/Lqs+KChp5X3U9FBdLama6kMSBfAfRKkV6S evbjH8j4vYjEj+3Iy2UVTM0= X-Google-Smtp-Source: ABdhPJzXWkNfLg1H04DRjMmiCsxhPMb0fvmFrDKIguC/9DPQdDmxQHyRzzLxfMeDBwyrfvethOi99Q== X-Received: by 2002:a17:90b:350c:: with SMTP id ls12mr5054679pjb.36.1635431933231; Thu, 28 Oct 2021 07:38:53 -0700 (PDT) Received: from localhost ([211.22.184.184]) by smtp.gmail.com with ESMTPSA id q8sm4119844pfk.75.2021.10.28.07.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 07:38:52 -0700 (PDT) From: Ihor Radchenko To: "Christopher M. Miles" Subject: Re: [BUG] kill-buffer invoked org-persistent-write-all-buffer caused Emacs long suspend In-Reply-To: References: <874k918jfe.fsf@localhost> Date: Thu, 28 Oct 2021 22:40:22 +0800 Message-ID: <87y26d6wmh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=yantar92@gmail.com; helo=mail-pl1-x635.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635432037; 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=6uITwU9ofBN7uAT5+mIWWTLam/Rxn5G9tUfzfn9ffFs=; b=s6tBc96ILJqGN79mPqNjDh1EwMI76ZEgRZZD7m60cUxKaG6W/jgWOPC9muTDOAK+8mbLIX sGJWuq4cO4jRRkF5fUlAsADnVPb1Sv030t4vi538gfftcvK8r1dpzKBNoKY2aUZD70/tJN 1B6Razhjy5i9cj8g9YGoWpq0UOMDvwosLEUYdsTEmtgkiJHCeeQhzPxf9gFIp6Il74HNVM Q/XIeB/Xc1HsSIIPsaaVKVW3ggl1Agz2ZA/TgWHWf+LSNiH+POiO6Zu+Y1UJLGrawQYyMW J30J6rFvtj1ku+y6qIfH3ufZfeoij0fgkO3DsRdzQjiEOr89rni994hId7CKvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635432037; a=rsa-sha256; cv=none; b=rlWXEofLchtIFpUQXPzY7/wJjlP3O3JNQRg75zTFGPPn+xCyANOoY3JgULrZr0opAVKZ6k vhrAZz5C2Ms9Wr55mMhMF/+PCTN+8z2bpdO2uz+I4WRPZsRpbm09mpX3xukQB+4JkIzfb2 9a4i6PDZ40Hwevw5cp/T3/bUnNgjjNAJf76XTiQfPqHVk/3PGIXy8SQzovYU1CALX4ehvB EAanOKMmRfZkMvdhCktrULR1gPRuWXfSvVqMozVIrnX38+r5RMntri/PvmxALJhx5/tOwr LE6yhBG2II0pvfv/NV3NJg/wUTvHvGaHhxB2eVpjUuR4hvi7FBRLq5axyklMUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NhFahkOy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NhFahkOy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2B12032AD7 X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: v7nRo3DzSbHN "Christopher M. Miles" writes: > Thanks for quick patch, I'm on the latest main. and I pulled your patch. Now it's not infinite > looping, but still takes about 3.5 seconds. So I take another profiler profiling again. Fixed (hopefully) on main via 1b2d06880. Please, restart emacs after loading the latest Org (or call M-: (org-persist-gc) before testing. A bug introduced in 5ca866d08 caused cache index corruption. org-persist-gc should fix the corrupted index. Best, Ihor