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: Tue, 22 Oct 2024 18:28:19 +0200 Message-ID: <87zfmwqezg.fsf@ledu-giraud.fr> References: <87le9jlfd6.fsf@ledu-giraud.fr> <83r0izzn1p.fsf@gnu.org> <87le95rqoh.fsf@ledu-giraud.fr> <83plyhvvso.fsf@gnu.org> <87h6jtrlci.fsf@ledu-giraud.fr> <83jzopvsgj.fsf@gnu.org> <87bka0hpto.fsf@ledu-giraud.fr> <83il48x4a8.fsf@gnu.org> <875y08gikv.fsf@ledu-giraud.fr> <831qawvx7q.fsf@gnu.org> <871qavhpxf.fsf@ledu-giraud.fr> <83edevvqyj.fsf@gnu.org> <87v887g85d.fsf@ledu-giraud.fr> <83a5pjvo3s.fsf@gnu.org> <87a5pid2zq.fsf@ledu-giraud.fr> <87o73jf46r.fsf@ledu-giraud.fr> <86h698l9mb.fsf@gnu.org> <875xplvk77.fsf@ledu-giraud.fr> <86jze1hhj1.fsf@gnu.org> <877ca1sfcd.fsf@ledu-giraud.fr> <867ca1h69p.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="2624"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: stefankangas@gmail.com, 68006@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 22 18:29:58 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 1t3Hld-0000Ui-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Oct 2024 18:29:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3HlJ-0005nL-KW; Tue, 22 Oct 2024 12:29:37 -0400 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 1t3HlH-0005ly-Ho for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:29:35 -0400 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 1t3HlH-0003eG-8N for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=zfCPVPRVOZVFMUdfnDVcMgrE6hDreadSSpfA9O1cxfY=; b=H9/CHIJR4PbkCoQX0tZXnQSOjwQDgcYRn93UPuNcDJEXLQFeFy9gTFIjz+1r+IDkvgo/gkX1tEO6uQVeZlu6rbpKbNl622+kcMEG49hJcP+QRauBG5r9zBRLBt4UR0ToleQTWhobvuPOxt/YQCHBz05ZZmZOx+Ra0iZZ8SQfZPt6UoPaLT1COVQg6CsqtVzYr8tj3RDSHqai5Nu8VqKgAEvhkVDN/NLBB0X6gUzZQHmJ0QLhkRYQ8WxUpL3HhChDE1C61wB+wngNpSRAaSQA7RJ7NvYIH5m2vF2FRJtE2qfYRev3nGluCYJ4YzOYNM1f9VJzezlyEHGtzsLgmQYjhA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3Hli-0003LQ-HO for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2024 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2024 16:30: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.172961455212769 (code B ref 68006); Tue, 22 Oct 2024 16:30:02 +0000 Original-Received: (at 68006) by debbugs.gnu.org; 22 Oct 2024 16:29:12 +0000 Original-Received: from localhost ([127.0.0.1]:57009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Hkp-0003Jo-Lm for submit@debbugs.gnu.org; Tue, 22 Oct 2024 12:29:11 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:9956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Hkj-0003JK-Ex for 68006@debbugs.gnu.org; Tue, 22 Oct 2024 12:29:06 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=a5reDJR0 VUCouaEzZsl+ZLgj8v9AtRJ3UU7GEXG5N4E=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=6gMiMah5lqzewn5yQz+DQhdr/7ezAG CTqRYppSYkWUIee5RbnAyV7BkRxFbXSLJjdgdt9SX8okjtwwTkHVoUCw== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=a5reDJR0VUCouaEz Zsl+ZLgj8v9AtRJ3UU7GEXG5N4E=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=PR30S9bPO0j/ptW8YXQKqDs8ywihwoBZh5rc+C rDzoE7sLbi87FvfTN3O1jrciRMIzWgueFVR52e5cmI0NpnnDv30aV32jrosJgFY872F2jt BE6+KjTQ0QEuuIB5AQc6hdGnylZL7XLxLldqv6FkDP/352mKqRIOGTjwoAKB6RN96Y5E8A SnvoIY/JwFcQdZtRYdtpHD3/keSaVmkm8b5usHD9wuO3x/yZkFXnS/XLPDUqy69okyn6QQ uTCOR2lnHdg6cO0xilTMGwFGOVqkhIssFieaRGtFycxl5fPiCffd7txoGHN1w9nAS9Z2dn MWIFV4D/ieONd2swg3mwq+JA== Original-Received: from computer (lec62-5_xxx-78-244-61-5.fbx.proxad.net [78.244.61.5]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id ed32f323 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 22 Oct 2024 18:28:31 +0200 (CEST) In-Reply-To: <867ca1h69p.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Oct 2024 17:36:50 +0300") 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:294115 Archived-At: Eli Zaretskii writes: >> From: Manuel Giraud >> Cc: stefankangas@gmail.com, 68006@debbugs.gnu.org >> Date: Mon, 21 Oct 2024 16:25:22 +0200 >> >> >> > We probably need a way for modifying the time an image is to be kept, >> >> > at least. >> >> >> >> Yes. Anyway, my last patch was completely wrong and I am working on >> >> another one. Tell me if you're interested to see where I'm headed to. >> > >> > It's your call. I and others are here to provide feedback if you feel >> > you need that. >> >> Anyway, here is a patch of what I have done. >> >> Since in the end an image is identify by an ID which is its index in the >> images vector, I choose to take this vector out of the cache struct and >> put it into what I called an image_store. > > What advantages did you see in doing it this way, wrt the original > code? I don't think there is any great advantage. I think I was more guide to doing it this way because I thought I need to make it into another (different) cache. -- Manuel Giraud