From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Which is faster: narrow-to-region or delete-region?
Date: Wed, 22 Sep 2021 10:53:34 +0200 [thread overview]
Message-ID: <DB9PR09MB49861D31A92EFED5AEAA231E96A29@DB9PR09MB4986.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83ilytvyz6.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 22 Sep 2021 03:41:36 -0400")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Arthur Miller <arthur.miller@live.com>
>> Cc: emacs-devel@gnu.org
>> Date: Wed, 22 Sep 2021 09:00:54 +0200
>>
>> > bunch of variables and does little else. Moreover, it cannot trigger
>> > GC, whereas delete-region method very well can.
>>
>> That too, wasn't even thinking about that. I am not so familiar how GC works
>> with code in C.
>
> GC can be triggered in C code by any of the following:
>
> . calling Lisp
> . calling some primitives, like funcall, directly from C
> . modifying text of some buffer
> . calling a memory-allocation function such as xmalloc
Allright, thank you. Noted in my notebook! :).
prev parent reply other threads:[~2021-09-22 8:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-21 20:10 Which is faster: narrow-to-region or delete-region? Arthur Miller
2021-09-22 5:51 ` Eli Zaretskii
2021-09-22 7:00 ` Arthur Miller
2021-09-22 7:41 ` Eli Zaretskii
2021-09-22 8:53 ` Arthur Miller [this message]
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=DB9PR09MB49861D31A92EFED5AEAA231E96A29@DB9PR09MB4986.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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.