]> err.no Git - systemd/commit
libudev: util - optimize path_encode()
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Tue, 21 Oct 2008 10:12:57 +0000 (11:12 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 21 Oct 2008 11:09:31 +0000 (13:09 +0200)
commitfa0e955a93ca7d7e90d286a68454c6bd808a1c01
treea22ed095c03e134718a9b95dd154a67dbebaad41
parentb29a5e4ab98f460d2f79a11d1969858640e897e6
libudev: util - optimize path_encode()

Since we already know the length, use memcpy() instead.
Measured 2% _user_ cpu time reduction on EeePC coldplug.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
udev/lib/libudev-util.c