diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2018-05-24 02:03:03 +0200 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2018-06-02 18:52:22 +0200 |
commit | 299121fc84b1e00650c9c976c0a847cd67e46eb0 (patch) | |
tree | 76820ad47b25f318415330d74b9a78c9e84d151b /applications/luci-app-travelmate/luasrc/view/travelmate | |
parent | 7acacf2cf806c5d74fc60f8a2de95628ba52bb7d (diff) |
luci-app-ddns: improve performance
Every request directed to the ddns app call ddns tools module.
Ddns tools module have lots of global variable that call slow os.execute function. This adds 10 second to every ddns request even if the function that is requested doesn't need that global variable. This commit introduce env_info function that execute os.execute command by executing what is actually requested and not process all the variables. Also remove 2 unecessary module that are not used. More researh find that major slowdown was caused by the calling of ddns script for the version check. Now we check if opkg is present and use it to check ddns-scripts version.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/view/travelmate')
0 files changed, 0 insertions, 0 deletions