[Haserl-users] Performance regression
Brought to you by:
nangel
From: Ralph S. <ra...@ne...> - 2014-03-20 18:50:49
|
Hi Nathan et al, I recently upgraded to 0.9.32 and found a fairly significant performance regression. I've traced it down to a change done in 0.9.28 when 'echo' was replaced with 'printf' in the generated shell script. For many systems, when the shell is bash, and both echo/printf are built-ins, there is likely not much difference. However, I am running haserl on an embedded system using 'ash' shell (from busybox). It has an option to make 'echo' a builtin, and I have that enabled, but there is no builtin version of printf. Consequently, a script that used to execute in 0.25sec now takes over 4 seconds to execute. Almost all of the script is verbatim text that just gets echoed. Given that haserl seems targetted towards small embedded systems, perhaps the decision to switch from echo to printf might warrant some additonal discussion? Regards, -Ralph |