Well I got both setups working for me on my Cubietruck (Jessie, PHP7) ARM machine.
I can compare them 1 at a time
by switching the active lua in /domoticz/scripts/lua directory.
Solution 1: @Egregius memcached style only using only:
Solution 2: The @Egregius original and added cjson based on @Sneezydevil
Code: Select all
Both solution brought the response time back from 250ms to 140-146 ms (on 433 mhz devices). Unfortunately not the 20-30ms as desired and shown possible by these forum members. However I have still some blockys running and some more lua scripts that have to be converted. As shown in this thread already by @Egregius this will have a negative impact on the total time.
Some more words to conclude the end of this year:
The biggest advantage I've seen by using PHP is the flexibility to create more complex scenarios and keep them running up to speed.
Especially if you use telegram / ipcam images / calling a kodi plugin for active devices all together in 1 scenario.
Ofcourse this would not at all have been possible without the hard work of the people contributing to the steady backbone Domoticz. @Egregius for his help learning me thr basics of PHP understanding, @Gizmocuz and the rest -> I wish you all a happy New-Year.