Project: mesos
Issue MESOS-2883: Do not call hook manager if no hooks installed
Hooks modules allow us to provide decorators during various aspects of a task lifecycle such as label decorator, environment decorator, etc. Often the call into such a decorator hooks results in a new copy of labels, environment, etc., being returned to the call site. This is an unnecessary overhead if there are no hooks installed. The proper way would be to call decorators via the hook manager only if there are some hooks installed. This would prevent unnecessary copying overhead if no hooks are available.
Story points: 2