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


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

Re: expression evaluation problem

Started byIlkka Virta <itvirta@iki.fi>
First post2019-07-25 21:15 +0300
Last post2019-07-25 21:15 +0300
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: expression evaluation problem Ilkka Virta <itvirta@iki.fi> - 2019-07-25 21:15 +0300

#15247 — Re: expression evaluation problem

FromIlkka Virta <itvirta@iki.fi>
Date2019-07-25 21:15 +0300
SubjectRe: expression evaluation problem
Message-ID<mailman.2233.1564078522.2688.bug-bash@gnu.org>
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

[toc] | [standalone]


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


csiph-web