Resource concerns with multiple PLTS/PLEGs

Howdy,

When I was first asking about PLEG and such, someone suggested that creating too many instance of a PLTS/PLEG could have negative impacts on vera, presumably in resource usage (RAM or CPU, I don’t remember anything being specific).

So I wanted to confirm/ask advice – is there resource usage/per-device consideration? Or are the devices just ‘faces’ to a common code base (so the incremental cost per PLEG/PLTS is just book-keeping overhead for that particular device).

If there is significant overhead for multiple PLTS/PLEG, are there any guidelines or ‘best practices’ to keep to (i.e. like ‘avoid more than 10 PLEG/PLTS devices’ or something)

While I understand a PLEG can be used for multiple things, I also am looking to create about PLTS units and while I can see a way to use a PLEG to do this instead of PLTS, I like the fact that the PLTS matches the intended use well and assuming there aren’t any resource issues, I’d prefer to go the ‘discrete device’ route. I’ll also have at least two PLEG devices as well.

Gerry

There is a memory impact for any plugin of about 2MB per instance. The actual files used by the plugin are shared by all the instances but are usually small anyway.

It is more efficient, in terms of memory load, to use a small number of PLEG devices with a large number of Conditions. The additional memory and processing impact of each Input and Condition is small. PLEG devices with forty Conditions are not unusual.

A single PLEG can implement the logic of several PLTS devices so, in memory terms, is more efficient.