charm-helpers
charm-helpers copied to clipboard
Speedup assess_status() indirectly by changing pausing code to note use HookData()
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).