charm-helpers icon indicating copy to clipboard operation
charm-helpers copied to clipboard

Speedup assess_status() indirectly by changing pausing code to note use HookData()

Open ajkavanagh opened this issue 7 years ago • 0 comments

Unfortunately, HookData() iterates through all of the relations which makes it very slow when it is used by the pause/unpause functions, and the assess_status() function template tests to see if the unit is supposed to be paused.

This can be speeded up by just using kv() directly. Issues are potentially around upgrades (although I can't think of one).

ajkavanagh avatar Apr 11 '18 13:04 ajkavanagh