From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69444: 30.0.50; 5 seconds to save file Date: Wed, 28 Feb 2024 14:03:56 +0200 Message-ID: <868r34u76b.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13614"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69444@debbugs.gnu.org To: Deric Bytes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 28 13:40:55 2024 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 1rfJF1-0003Mb-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Feb 2024 13:40:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfJEp-0007Z4-90; Wed, 28 Feb 2024 07:40:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfJEl-0007YK-6t for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 07:40:40 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfJEi-0002uV-Fy for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 07:40:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfJF8-0004T9-W6 for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 07:41:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Feb 2024 12:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69444 X-GNU-PR-Package: emacs Original-Received: via spool by 69444-submit@debbugs.gnu.org id=B69444.170912405017134 (code B ref 69444); Wed, 28 Feb 2024 12:41:02 +0000 Original-Received: (at 69444) by debbugs.gnu.org; 28 Feb 2024 12:40:50 +0000 Original-Received: from localhost ([127.0.0.1]:36636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfJEv-0004SC-Lk for submit@debbugs.gnu.org; Wed, 28 Feb 2024 07:40:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfJEu-0004Rf-2R for 69444@debbugs.gnu.org; Wed, 28 Feb 2024 07:40:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfIfi-0003Nc-Sc; Wed, 28 Feb 2024 07:04:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QbbazgNOflqUAdnJjd0eklJVQ2xBpQqiMWQZ9lH796E=; b=gx9nWjDmX/rz /x68Vx3h/LfwlJqCThKiBz5f09mTO07fOUNRr0/hzh1LeL2kpfsVby2mu8KgDpGfIpec50eT/0+vA HpMJzg5fP3M7jD8b4mcQD4P7OQyRtz+D136R5weD5D0vjAY2B9Gif+KDHkTZ+NiJCq6r7Q5DEn0wT OVkoDEbTusmggRZrFoImTPqX9dPzYxyJWeJrM5rR7ElWFqsTdOOwOvu/PeyXPMemmJIX3yA2ISxBG bnDPRf7UQLdlagXKTJCDy8pFMXcCNflkEsL/F+4hdooNrWnn1fxsapoNjccGGBq6sfqs1K7qwySjt sDFRtcq7l7EqiD1rldYY8w==; In-Reply-To: (message from Deric Bytes on Wed, 28 Feb 2024 00:32:10 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280753 Archived-At: > From: Deric Bytes > Date: Wed, 28 Feb 2024 00:32:10 +0000 > > Saving a small file in emacs -q seems to take 1 to 5 seconds. I sincerely doubt that, see below. Especially if the file's contents is plain ASCII, so doesn't need any encoding when saving it. > I assume this because the 'Rapid Refresh' app I am using takes 1 to 5 seconds to notice > the file change when I change it with emacs but 0 seconds when changed with another editor. You will need to tell us how does Rapid Refresh detect such changes, because I don't know that. I also don't know what do "other editors" do when you save a modified file. I do know what Emacs does by default: it renames the original file to the backup file name (so a file FOO will be renamed to FOO~), and then writes a _new_ file under the original-file name with the new contents. So from the filesystem POV, what happens is that the original file is renamed to a different name, and then a new file appears under the name of the original file. The question is: how would Rapid Refresh detect such changes, and what would be the time frame for that? If "other editors" overwrite the original file with new contents, the filesystem could have a very different view of what happens, and thus the detection by Rapid Refresh could exhibit different timings.