GNU bug report logs - #76103
[PATCH] New function 'process-output'

Previous Next

Package: emacs;

Reported by: Álvaro Ramírez <alvaro <at> xenodium.com>

Date: Thu, 6 Feb 2025 19:07:02 UTC

Severity: wishlist

Tags: patch, wontfix

Full log


View this message in rfc822 format

From: Alvaro Ramirez <alvaro <at> xenodium.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: acorallo <at> gnu.org, 76103 <at> debbugs.gnu.org, stefankangas <at> gmail.com, juri <at> linkov.net
Subject: bug#76103: [PATCH] New function 'process-output'
Date: Fri, 07 Feb 2025 14:01:45 +0000
Thanks Eli.

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

> I'm not sure a 2.5 boost in performance

(let ((before (benchmark-run 1000
               (shell-command-to-string "seq 200")))
     (after (benchmark-run 1000
              (process-output "seq" "200"))))
 (/ (car before)
    (car after))) => 3.27

Roughly a 3.27 gain, or should I calculate differently?

> (on which platform, btw?) justifies yet another API.

macOS. Need to grab a hold of a linux box to get equivalent 
figure.

>   We need to think about the downsides of
> enlarging Emacs: the need to document each new API, the need to
> maintain it, the need to somehow explain which one of the 
> alternatives
> to use in each case, etc.

Makes sense.

>
> But let's see what other maintainers think.

Sounds good.




This bug report was last modified 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.