Page 1 of 1

Multiple Blocky events or one

Posted: Wednesday 21 June 2017 10:21
by poudenes
Hi All,

I have 7 different block events. All for some specific triggers and actions.
Is it ok the keep them separate or will it speedup to combine them together in 1 bog blocky file?

For easy editing and finetune separate ones are easier. Otherwise the list become very long.
But was curious if it will be better to combine them to 1 blocky

Re: Multiple Blocky events or one

Posted: Wednesday 21 June 2017 17:37
by heggink
Interesting thought. When I converted my blockies into lua (due to the memory leak issue), I did them 1 by 1 and ended up with nearly 50 lua files that trashed my system performance. Once consolidated into 4 bigger scripts, my cpu was back to low single digits again (from 80+%). I can imagine that domoticz intelligently tracks what devices are used in the blocky. If not then a similar principle would apply...

Re: Multiple Blocky events or one

Posted: Saturday 24 June 2017 20:36
by poudenes
heggink wrote:Interesting thought. When I converted my blockies into lua (due to the memory leak issue), I did them 1 by 1 and ended up with nearly 50 lua files that trashed my system performance. Once consolidated into 4 bigger scripts, my cpu was back to low single digits again (from 80+%). I can imagine that domoticz intelligently tracks what devices are used in the blocky. If not then a similar principle would apply...
Yes i read also that 1 lua script is better... Easier because its text so you can scroll faster true the whole list.
Block is graphical and when its very long there is a lag ... So i split up the blocky haha.

I don't see any cpu usage that is higher then with 1 blocky