emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing image support for kitty terminal


From: Jose A Ortega Ruiz
Subject: Re: Implementing image support for kitty terminal
Date: Fri, 09 Sep 2022 00:32:32 +0100

On Fri, Sep 09 2022, Tomas Hlavaty wrote:

> On Thu 08 Sep 2022 at 22:47, Jose A Ortega Ruiz <jao@gnu.org> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]