On 24.7. 21:43, L A Walsh wrote:
Does it improve execution time? That's more of a concern here than
readability, since it is an expression fragment, it isn't meant to be
understood
in isolation.
[...]
The important part for me is whether or not it is faster to perform
1 calculation, or 100. So which would be faster? In this case
execution speed
is more important than clarity. I consider that a 'constraint'.
Shouldn't it be easy enough to measure how much restructuring that
expression affects the execution speed?
Also, regarding execution speed, I've been led to believe that the shell
in general is rather slow, and almost any other language would be better
if that is of concern. (awk, Perl, what have you.)
--
Ilkka Virta / [email protected]