On Wed, Dec 13, 2023 at 9:29 PM Kerin Millar <kfm@plushkava.net> wrote:
> On Wed, 13 Dec 2023 20:50:48 -0500
> Zachary Santer <zsanter@gmail.com> wrote:
> > Would using funsubs to capture the stdout of external commands be
> > appreciably faster than using comsubs for the same?
>
> In the case of a script that would otherwise fork many times, frequently,
the difference is appreciable and can be easily measured.
As a follow-on question, why would this be implemented only now? From the
very beginning, capturing the stdout of an external command involved
forking a subshell, and soon (assuming funsubs remain when 5.3 is released)
it won't have to. It feels like something changed to make this feasible
when it hadn't been before.
Zack