]> err.no Git - systemd/commit
determine at rule parse time if we need to call fnmatch()
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 24 Oct 2008 11:32:32 +0000 (13:32 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 24 Oct 2008 11:32:32 +0000 (13:32 +0200)
commitac218d9cc8344755654f6be34f8c60863fe2fb33
treea767ce002083132214ef74bf20d569ada81bb957
parentb0f7409f2416a95cf38bfc19410bd8466778194b
determine at rule parse time if we need to call fnmatch()

This cuts down the large rule set's 120.000 calls to fnmatch() to
51.000, and we can just call strcmp for the simple matches.
udev/udev-rules.c