Optimize trigger_label matching
Currently, the trigger_label
(which is a regex) is compiled each time we test if a detector should be triggered:
This is actually quite heavy => the regexes should be compiled only once!
Currently, the trigger_label
(which is a regex) is compiled each time we test if a detector should be triggered:
This is actually quite heavy => the regexes should be compiled only once!