emacs-devel
[Top][All Lists]
Advanced

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

Re: Which is faster: narrow-to-region or delete-region?


From: Arthur Miller
Subject: Re: Which is faster: narrow-to-region or delete-region?
Date: Wed, 22 Sep 2021 10:53:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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! :).



reply via email to

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