Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14864 > unrolled thread

Re: Optimisation request

Started byChet Ramey <chet.ramey@case.edu>
First post2018-11-29 09:02 -0800
Last post2018-11-29 09:02 -0800
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Optimisation request Chet Ramey <chet.ramey@case.edu> - 2018-11-29 09:02 -0800

#14864 — Re: Optimisation request

FromChet Ramey <chet.ramey@case.edu>
Date2018-11-29 09:02 -0800
SubjectRe: Optimisation request
Message-ID<mailman.4869.1543510965.1284.bug-bash@gnu.org>
On 11/26/18 1:29 PM, Martijn Dekker wrote:
> I've noticed bash-5.0beta is quite a bit faster than bash-4.4 in running a
> lot of pure shell code. Good news.
> 
> One optimisation that isn't done yet: if a subshell function like
> 
>     f() (foo)
> 
> is used in a command substitution, it forks twice. I would like it if it
> could be optimised to eliminate the fork if the subshell function is the
> last command in the command substitution.

There is already code to optimize subshell commands like this; it's just
disabled until bash-5.1 so I have more time to test it.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web