]> git.eshelyaron.com Git - emacs.git/commit
Go around calling the default process filter (reducing GC churn)
authorDmitry Gutov <dmitry@gutov.dev>
Sat, 23 Sep 2023 22:19:14 +0000 (01:19 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Jun 2024 09:51:34 +0000 (11:51 +0200)
commitfbfec4cd4f0831fac0ed88c41e4f305617bac8a9
treeb151f115cca677a131f2a14ced0f9cc3d90af891
parentaaeab78dca7103311188a849e028b8d388e2061a
Go around calling the default process filter (reducing GC churn)

Instead of allocating strings and passing them to the filter, pass
the char buffer to a C function implementing the same logic.

* src/process.c (read_process_output_before_insert)
(read_process_output_after_insert):
New functions, extracted from internal-default-process-filter.
(Finternal_default_process_filter): Use them.
(read_and_insert_process_output): New function.  Use them.
(read_process_output_fast): New variable.
(read_process_output): Use it to choose how to insert (bug#66020).

* etc/NEWS: Mention the change.

(cherry picked from commit bbc18031aff6f22a1f2b63355f18f294fbdeb797)
etc/NEWS
src/process.c