emacs-devel
[Top][All Lists]
Advanced

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

Re: [GNU ELPA] New package: tam


From: Lynn Winebarger
Subject: Re: [GNU ELPA] New package: tam
Date: Thu, 21 Sep 2023 23:01:18 -0400

On Thu, Sep 21, 2023 at 9:59 AM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> > or tam--pool.  In any case, every call operation invokes maybe_gc
> > unconditionally, so there is a chance of a GC occuring during the
> > execution of the byte-vector.
>
> The GC can occur right before or right after since the act of calling
> your functions will go through `maybe_gc`, in any case, so I doubt
> that will ever make a significant difference.

This is true.  Every path to executing a callback will call maybe_quit
and maybe_gc.

> > I haven't looked to see if obtaining an additional stack segment might
> > cause a gc or just a system call to get more memory.
>
> AFAIK, Emacs is not run as a real-time task, so I wonder why you're
> worrying about that.
> [ And no, an additional stack segment should not trigger GC, AFAIK.  ]

I want to add minimal overhead so developers will feel free to use it
or other infrastructure packages that make use of it.

I'm also just curious.  Exercises of this sort are a satisfying excuse
to dig into emacs-lisp internals.


Lynn



reply via email to

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