From: Lynn Winebarger <owinebar@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [GNU ELPA] New package: tam
Date: Thu, 21 Sep 2023 23:01:18 -0400 [thread overview]
Message-ID: <CAM=F=bC3kBFjEkSN5=B9pttjQRQzkGM2VFs=nTqPt2DOV2VwYg@mail.gmail.com> (raw)
In-Reply-To: <jwv7cojk56x.fsf-monnier+emacs@gnu.org>
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
next prev parent reply other threads:[~2023-09-22 3:01 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-18 2:28 [GNU ELPA] New package: tam Lynn Winebarger
2023-09-18 9:37 ` Philip Kaludercic
2023-09-18 16:22 ` Lynn Winebarger
2023-09-18 17:02 ` Philip Kaludercic
2023-09-19 15:38 ` Lynn Winebarger
2023-09-20 8:26 ` Philip Kaludercic
2023-09-20 16:14 ` Lynn Winebarger
2023-09-20 17:30 ` Stefan Monnier via Emacs development discussions.
2023-09-21 4:21 ` Lynn Winebarger
2023-09-21 13:59 ` Stefan Monnier
2023-09-22 3:01 ` Lynn Winebarger [this message]
2023-09-22 3:23 ` Stefan Monnier
2023-09-21 16:38 ` Philip Kaludercic
2023-09-18 19:26 ` Adam Porter
2023-09-19 15:48 ` Lynn Winebarger
2023-09-19 16:29 ` Adam Porter
2023-09-21 20:26 ` Richard Stallman
2023-09-22 19:45 ` Adam Porter
2023-09-20 16:06 ` Stefan Monnier
2023-09-20 16:44 ` Lynn Winebarger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM=F=bC3kBFjEkSN5=B9pttjQRQzkGM2VFs=nTqPt2DOV2VwYg@mail.gmail.com' \
--to=owinebar@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.