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#68006: 30.0.50; Image-mode speed Date: Sun, 31 Dec 2023 09:16:11 +0200 Message-ID: <83le9a3kqs.fsf@gnu.org> References: <87le9jlfd6.fsf@ledu-giraud.fr> <83wmt3bkla.fsf@gnu.org> <87h6k6lgdy.fsf@ledu-giraud.fr> <83wmt29zfy.fsf@gnu.org> <87il4m6rcx.fsf@ledu-giraud.fr> <83bkae9j11.fsf@gnu.org> <87bkadyqdk.fsf@ledu-giraud.fr> <8334voanr1.fsf@gnu.org> <877cl0zvln.fsf@ledu-giraud.fr> <83y1dg954u.fsf@gnu.org> <87zfxvalnq.fsf@ledu-giraud.fr> <83o7eb938y.fsf@gnu.org> <87wmsxmff3.fsf@ledu-giraud.fr> <83mstt5hrk.fsf@gnu.org> <87frzjvpb5.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manuel@ledu-giraud.fr, 68006@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 31 08:17:30 2023 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 1rJq4f-00040B-Q7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Dec 2023 08:17:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJq4K-0002Sr-By; Sun, 31 Dec 2023 02:17:08 -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 1rJq4F-0002Qu-J3 for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 02:17:05 -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 1rJq4C-0002ZO-TZ for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 02:17:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJq4D-0002x0-Lb for bug-gnu-emacs@gnu.org; Sun, 31 Dec 2023 02:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Dec 2023 07:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68006 X-GNU-PR-Package: emacs Original-Received: via spool by 68006-submit@debbugs.gnu.org id=B68006.170400698610687 (code B ref 68006); Sun, 31 Dec 2023 07:17:01 +0000 Original-Received: (at 68006) by debbugs.gnu.org; 31 Dec 2023 07:16:26 +0000 Original-Received: from localhost ([127.0.0.1]:45554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJq3d-0002m5-UX for submit@debbugs.gnu.org; Sun, 31 Dec 2023 02:16:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJq3c-0002fu-0x for 68006@debbugs.gnu.org; Sun, 31 Dec 2023 02:16:24 -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 1rJq3V-0002RM-H6; Sun, 31 Dec 2023 02:16:17 -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=6h9ETueef17aOJ0Mi1QFwoQ+3MjcsJ56hdXNT4vTHrE=; b=PD2/IUky5pOM Uhn6YdgatWfDSZjWn01xZFn2nnf2uN43jxhSZdGBNz2yzSxYEXIDCD/hm+O38L8UitJmbxSdVON3O SL8mhyK3YcJ0LuNxsbr6MdQhcg4naChb+ROAJMLAIfWHVFQRhfuAvxqCYBo3GfSYHO5YPjk7XW8l4 eOs6ace30335aVx3sInjdqMxBkTFcEkNbIwK2zcttS0X27tAxh2+aPg4PGcWpMJn+Dpd0iIKfB05t rW8Nkp/viu39+b6zzWYd5REpxCcQKWHSQKSVEexFmq97NfVam4yeiCejRhoPhz8BMD6Es2pUKEG1A Cu0dhQtx/37izN2OzZP2Bw==; In-Reply-To: (message from Stefan Kangas on Sat, 30 Dec 2023 15:57:28 -0800) 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:277129 Archived-At: > From: Stefan Kangas > Date: Sat, 30 Dec 2023 15:57:28 -0800 > Cc: 68006@debbugs.gnu.org > > Taking a step back, why are images treated differently from other > buffers? If the risk is that the image changes on disk without us > noticing, then users should need to either run `revert-buffer' or enable > `auto-revert-mode'. If we are talking about images that are inline in a > buffer, the cache should be flushed only when the buffer itself is > reverted. What am I missing? See my explanation of the purpose of this particular cache here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68006#14 In a nutshell, this cache is ephemeral anyway, and will be flushed at some arbitrary time whether we want it or not, because its purpose is not what you think it is. In any case, if you intend to not flush the cache at all, then what does that mean for Emacs sessions running for days and weeks, let alone months, on end? will they keep these images in memory forever? Or should GC sometimes evict those images from the cache, and if so, under what conditions? As for the differences between images and other buffers, there are some: . many buffers are smaller than images nowadays . buffers with images are in many cases showing text we are interested in temporarily, like Web pages (program source code rarely if ever includes images, right?)