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: Eli Zaretskii
Subject: Re: Which is faster: narrow-to-region or delete-region?
Date: Wed, 22 Sep 2021 10:41:33 +0300

> 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



reply via email to

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