Date: Sun, 28 Jun 2020 12:06:10 -0400 From: Eli Schwartz <eschwa...@archlinux.org> Message-ID: <d1172623-25cb-bcf9-b9b5-b7bf3cb54...@archlinux.org>
| 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