From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jose A Ortega Ruiz Newsgroups: gmane.emacs.devel Subject: Re: Implementing image support for kitty terminal Date: Fri, 09 Sep 2022 00:32:32 +0100 Message-ID: <87a679xx0v.fsf@mail.jao.io> References: <87v8pz18wf.fsf@mail.jao.io> <83o7vrgimc.fsf@gnu.org> <87wnafdnee.fsf@logand.com> <835yhzgdyi.fsf@gnu.org> <87k06den1s.fsf@logand.com> <87illxy5ir.fsf@mail.jao.io> <87sfl1d1wi.fsf@logand.com> <87czc5y1wp.fsf@mail.jao.io> <878rmtcwrv.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19380"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tomas Hlavaty , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 09 01:33:54 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oWR1t-0004tV-FX for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Sep 2022 01:33:53 +0200 Original-Received: from localhost ([::1]:54506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWR1s-0000cz-3z for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Sep 2022 19:33:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWR0e-0008Ch-9x for emacs-devel@gnu.org; Thu, 08 Sep 2022 19:32:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWR0d-0004LM-Tl; Thu, 08 Sep 2022 19:32:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=hEIacchrrQcAitROUnLHV+1wUfF8hCnZDzSklke1Hak=; b=Zv5uEOAVX7Av5z9fk/9Z U5BFEv8vihpEtBZEkOl/Vych1P+NQf/rjjbz+xj+ehT9KfvjUhgdq+NrWE0xyMLfb3tY0oCm79NRI 9oYlLlTssZWzKl6mXWoAKXKGsiCNzzfrkDNGiHQWLl4yu5uYqecp2eOK4dIitCXLYkvr3rqmDljij nQ/BqweSzRIPwIDvlocCwAxzGgcIKawyrxGi9KLRQqXUstl10scoh13Er9PzPkrheN3fyOP6OQniL 047J+6haTghixTp+ehtIDKlippCDdJ9a9b2GSe8WSvVAcggsZrxlDHFOXr6vtlcxnkMY1w4CCgsXr TQ0oNVngcL1SBA==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:34042 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWR0d-0003iQ-Ie; Thu, 08 Sep 2022 19:32:35 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 70e79ae0; Thu, 8 Sep 2022 23:32:32 +0000 (UTC) In-Reply-To: <878rmtcwrv.fsf@logand.com> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295021 Archived-At: On Fri, Sep 09 2022, Tomas Hlavaty wrote: > On Thu 08 Sep 2022 at 22:47, Jose A Ortega Ruiz wrote: >> After 4-5 days of continous use, a graphical emacs is consuming around >> 2Gb for me, sometimes 3Gb; emacs-nox+kitty, combined, with the same >> workload except displaying images, is under 500Mb. > > Which graphical emacs exactly? There are several options. all of them. 2Gb is usually for X11 with no-toolkit or lucid. gtk is easily in the 2.5Gb. in wayland with pgtk, we're on the 3Gb range. and it doesn't seem to be bounded: every day of usage will add footprint (i usually restart because i compile every week or so). > Maybe "except displaying images" makes the difference? maybe. i'll know for sure when the new TGUI backend is implemented :) > Have you tried the same workload both not displaying images? yes. i still see the effect. > Maybe if you open images in gui emacs and do not close > the buffers, they do not free the memory? > Or some other issue? believe me, i've tried lots of combinations, including selectively excluding from my workflow some packages for a while, but haven't been able to pinpoint a single culprit, except that when running in a terminal RAM is stable (and low).. > (I stopped using eshell because it eats my RAM but that is not graphics > related.) yeah, it could be anything in principle (i have around 60 packages installed and use at least a couple dozen of them frequently), but in my case the trouble seems to be triggered only in graphical emacsen (i've also tried with and without imagemagick, but it seems to make no difference).. >> not in wayland. > > Under Xwayland? > > I do not use wayland, but iirc pgtk backend should work there. it does, but the pgtk build, besides needing 3Gb RAM for continuous use, is based on GTK, one of the "complicated toolkits" i'd be happy to avoid. also, a term emacs running inside kitty or foot in wayland is very noticeably faster than the graphical counterpart (also in X11, but there the difference is less remarkable), and i actually prefer using the term and open my pdfs, images, etc. with an external viewer than using the pgtk build. all in all, i am a quite content emacs-inside-a-graphical-terminal user, but also having the images in there, without needing any other program, would be the bee's knees. cheers, jao -- People hate as they love, unreasonably. -William M. Thackeray