From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Sun, 28 Sep 2008 11:00:29 +0000 Subject: [PATCH 0/2] udevd: Optimize "goto" Message-Id: <48DF63CD.6070507@tuffmail.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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.