udevd: Optimize "goto"
cover udevd: Optimize "goto"
I seem to remember you mentioned this as a longer-term goal. This was in the context of the TODO item "rework rules to a match-action list, instead of a rules array".
The idea was to move the scan for the label targeted by a goto rule (udev_rules_iter_label), from run-time to parse-time. It avoids repeating the scan for every event.
I already had a patch for this specific idea. I think it can be implemented now without causing problems. It's no big win - cachegrind suggests it takes 5% off user cpu time - but it is progress.