Re: expression evaluation problem

2019-07-26 Thread L A Walsh
On 2019/07/25 11:15, Ilkka Virta wrote: > On 24.7. 21:43, L A Walsh wrote: > >> 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

Optimize bash string handling?

2019-07-26 Thread Alkis Georgopoulos
While handling some big strings, I noticed that bash is a lot slower than other shells like dash, posh and busybox ash. I came up with the following little benchmark and results. While the specific benchmark isn't important, maybe some developer would like to use it to pinpoint and optimize some i