From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68006: 30.0.50; Image-mode speed Date: Mon, 25 Dec 2023 19:59:10 +0100 Message-ID: <87il4m6rcx.fsf@ledu-giraud.fr> References: <87le9jlfd6.fsf@ledu-giraud.fr> <83wmt3bkla.fsf@gnu.org> <87h6k6lgdy.fsf@ledu-giraud.fr> <83wmt29zfy.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13057"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68006@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 25 20:00:15 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 1rHqBT-0003FC-6Y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Dec 2023 20:00:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHqBB-0007hB-6n; Mon, 25 Dec 2023 13:59:57 -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 1rHqBA-0007gy-71 for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 13:59:56 -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 1rHqB9-00078I-Uw for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 13:59:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHqBG-00040o-BD for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 14:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Dec 2023 19:00:02 +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.170353076515336 (code B ref 68006); Mon, 25 Dec 2023 19:00:02 +0000 Original-Received: (at 68006) by debbugs.gnu.org; 25 Dec 2023 18:59:25 +0000 Original-Received: from localhost ([127.0.0.1]:55381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHqAf-0003zH-De for submit@debbugs.gnu.org; Mon, 25 Dec 2023 13:59:25 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:30248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHqAa-0003z5-A7 for 68006@debbugs.gnu.org; Mon, 25 Dec 2023 13:59:24 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=FuEHaSMo M6qE+/ROjTUl+tfPXNS6ZTJM+g6y/45IL5s=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=BDYwF9a6G/rKVaqFACgK3HK7Iqtgit 4dW4gRpudPM1OyYz8U3k++ZfuNUdjdwvWzj/lpUAw/ZEwDSaMWzQ/QCg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=FuEHaSMoM6qE+/RO jTUl+tfPXNS6ZTJM+g6y/45IL5s=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=zQQIIBgHWL2PIbYCEggDMJn61BJcBjLGwPzzJP JwUJEr1guAYQeLP2J+N4Nv9Zbkc/2+fzVyKqnk0QsUwrrQRUUvhpc7sj6aL09EAhUmER5m 4ixI5XXxGkCQnDQS62wHo9xqfF7CMxVCZdwl12OWyHi2HCWZzCcwpHrit+Puno9oGKE9by ZZdWyCY1jf+Ai2gEHXbWyY+jWWHHXvwVaJeKT3mOsBB4ibTtakEaV3Q5cu/qBUEAZCuvOg FKdrjh1e1pF4gtBejl9Sk/Fr4JnoHFdLfqE1iX5oR4biigdPETTqR8QcHc84qqg1U6zYwL 97t0YqlZ3ZSwRvghXqOCgwGA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 026980fb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 25 Dec 2023 19:59:11 +0100 (CET) In-Reply-To: <83wmt29zfy.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 25 Dec 2023 15:36:17 +0200") 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:276883 Archived-At: Eli Zaretskii writes: [...] > I think the reason is what I mentioned above. > > You seem to interpret the purpose of the image-cache differently from > its real purpose. The real purpose of the image cache is not to hold > the image in memory for displaying it again and again, the purpose is > to allow the display engine to generate the pixels once, then reuse > those pixels during the current redisplay cycle or a few following > redisplay cycles. That's why we can so easily evict images from the > cache when some time has passed: the cache is ephemeral anyway, and is > intended to serve only as a short-term memory. Ok, I guess I understand this purpose... > When working with external image files, flushing the image cache is a > good measure to make sure we always display the file on disk, not some > previous copy of it. ... but then this does not seem like a good fit for the usage in image-mode. When using 'image-next-file'/'image-previous-file', I imagine that the idea is browse some pictures seamlessly. Removing an image from the cache each time seems to go against this. About being sure to display the file on disk, maybe we could call 'image-flush' only if the file has changed since its display. WDYT? -- Manuel Giraud