bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: expression evaluation problem


From: Ilkka Virta
Subject: Re: expression evaluation problem
Date: Thu, 25 Jul 2019 21:15:00 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

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 / itvirta@iki.fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]