[LEDE-DEV] Call defines for minifying scripting languages

Zefir Kurtisi zefir.kurtisi at neratec.com
Tue Oct 4 03:10:27 PDT 2016


On 10/03/2016 01:00 PM, Jan-Tarek Butt wrote:
> Hi,
> 
> My Idea ist to create calldefs to minify all scriptes there are 
> interpreted by run time.
> 
> As example see the mail "[PATCH] LuaSrcDiet call define for lua 
> code Minifying".
> 
> I plan to write also calldefs for shellscripts, python and perl.
> 
> [...]
> 
When it comes to shell-scripts, I'd start at a prior step: why does an embedded
system need to run and interpret so many shell-scripts at all?

OWRT has been shell-script heavy from the very beginning, but luckily over the
last few years started to move more and more of that scripted functionality into
binaries (e.g. procd, netifd). This transition only started, and imho the goal to
reach is to get rid of all shell-scripts on target (beside init-scripts, maybe).

Therefore, instead of optimizing them, I'd opt to treat them as technical debt
which needs to be resolved by replacing scripts with binaries - personally, I
won't spend too much time on something to-become-legacy mid-term.



Cheers,
Zefir




More information about the Lede-dev mailing list