diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-08 02:04:49 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-07-08 02:04:49 +0200 |
commit | 871a36bd7e37a9d27e633b93ae0119a4553195ec (patch) | |
tree | 2bd56b520e33bb26f1182baf7bfc17baa4feda1f /libudev/libudev-queue.c | |
parent | a71369b0db359cddeb207a317588b175630dcca8 (diff) |
libudev: enumerate - sort with qsort()
On machines with many thousands of devices:
$ time find /sys -name uevent | wc -l
74876
real 0m33.171s
user 0m3.329s
sys 0m29.719s
the current udevtrigger spends minutes sorting the device list:
$ time /sbin/udevadm trigger --dry-run
real 4m56.739s
user 4m45.743s
sys 0m7.862s
with qsort() it looks better:
$ time udev/udevadm trigger --dry-run
real 0m6.495s
user 0m0.473s
sys 0m5.923s
Diffstat (limited to 'libudev/libudev-queue.c')
0 files changed, 0 insertions, 0 deletions