Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Robert Elz Newsgroups: gnu.bash.bug Subject: Re: Undocumented feature: Unnamed fifo '<(:)' Date: Mon, 29 Jun 2020 03:21:22 +0700 Lines: 26 Approved: bug-bash@gnu.org Message-ID: References: <20200628134945.GB24863@medium.hauri> <6427.1593375682@jinx.noi.kre.to> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1593375722 4224 209.51.188.17 (28 Jun 2020 20:22:02 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Eli Schwartz Envelope-to: bug-bash@gnu.org In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:3c8:9009:181::2 (deferred) Received-SPF: permerror client-ip=2001:3c8:9009:181::2; envelope-from=kre@munnari.OZ.AU; helo=munnari.OZ.AU X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_05=-0.5, RDNS_NONE=0.793, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <6427.1593375682@jinx.noi.kre.to> X-Mailman-Original-References: <20200628134945.GB24863@medium.hauri> Xref: csiph.com gnu.bash.bug:16474 Date: Sun, 28 Jun 2020 12:06:10 -0400 From: Eli Schwartz Message-ID: | You COMPLETELY failed to even read the reporter's message, which | specifically stated "In order to reduce forks and make some tasks a lot | quicker [...]" I noticed that explanation, but like Dennis, I fail to see how the complicated version does any more than pretend there are less forks happening. Was the speed of this actually measured, and if so, where are the comparative results? Either way, to make the conversion, the date command needs to be run (in the complicated version, setbuf as well, which means an extra exec at least) - running a command means a fork, and all we have to start with is bash, so bash needs to fork to run date, each time it needs to run. What evidence is there that the complicated way, with all of its extra file opens, etc, is faster than the simple way, or involves less forks? kre