emacs-devel
[Top][All Lists]
Advanced

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

Re: Filtering out process filters


From: Augusto Stoffel
Subject: Re: Filtering out process filters
Date: Thu, 05 Jun 2025 09:36:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Wed,  4 Jun 2025 at 17:01, Daniel Colascione wrote:

> Eli Zaretskii <eliz@gnu.org> writes:

>> Btw, I still don't have a clear idea why the ACF method is so much
>> faster, since it basically does the same stuff.
>
> The ACF method, in the unibyte case (which is what you want for JSON and
> terminal alike) boils down to memcpy() in process.c from the `chars`
> buffer to the literal buffer contents --- followed by a cheap Lisp call
> touching cache-hot conses (the ACF list).

That probably makes it a bit faster, but I'm skeptical it can be so much
faster.

Did you see my previous message, where I changed the benchmark to not
block the UI?  Benchmarks that do

  (while (accept-process-output ...))

on the main thread are not representative of the typical use cases.



reply via email to

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