From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#38187: 27.0.50; No mouse-wheel scaling on images Date: Thu, 21 Nov 2019 22:26:30 +0100 Message-ID: <87blt4x6nt.fsf@gnus.org> References: <87tv79ksuz.fsf@mail.linkov.net> <83zhgy62u8.fsf@gnu.org> <87y2we7r90.fsf@gnus.org> <83lfse5w04.fsf@gnu.org> <87a78u7ags.fsf@gnus.org> <878soemc79.fsf@marxist.se> <87mucut8ch.fsf@mail.linkov.net> <87ftilsg6q.fsf@gnus.org> <87r224sw6s.fsf@mail.linkov.net> <83ftik35kw.fsf@gnu.org> <87pnhmm9ui.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183833"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: stefan@marxist.se, 38187@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 21 22:27:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXtyo-000le6-HU for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 22:27:10 +0100 Original-Received: from localhost ([::1]:45938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXtym-0006v0-TD for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2019 16:27:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXtyh-0006ue-5L for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 16:27:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXtyf-0002f4-Uh for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 16:27:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44594) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXtyf-0002ep-RL for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 16:27:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXtyf-0003Fy-K7 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2019 16:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2019 21:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38187 X-GNU-PR-Package: emacs Original-Received: via spool by 38187-submit@debbugs.gnu.org id=B38187.157437160912502 (code B ref 38187); Thu, 21 Nov 2019 21:27:01 +0000 Original-Received: (at 38187) by debbugs.gnu.org; 21 Nov 2019 21:26:49 +0000 Original-Received: from localhost ([127.0.0.1]:53415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXtyR-0003FX-Ew for submit@debbugs.gnu.org; Thu, 21 Nov 2019 16:26:49 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:37266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXtyN-0003FH-Du for 38187@debbugs.gnu.org; Thu, 21 Nov 2019 16:26:46 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iXtyB-0004GZ-4g; Thu, 21 Nov 2019 22:26:33 +0100 In-Reply-To: <87pnhmm9ui.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 21 Nov 2019 01:00:53 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172166 Archived-At: Juri Linkov writes: > BTW, while testing it for image scaling on a quite small image file, > Emacs consumed several GB of all available memory and almost all swap, > before I noticed and evaluated M-: (clear-image-cache) that freed memory. > > Memory leak? No, it's just that Emacs' image cache is very primitive. You can easily get Emacs to go out-of-memory by just doing a (dolist (file (directory-files dir-with-lots-of-images)) (erase-buffer) (insert-image (create-image file))) You get the same effect by altering the scaling factor, I think? Each scaled image is cached? So by rolling the wheel ten clicks you get ten cached copies of the image. A better eviction algorithm would be nice. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no