This patch use the utxent function family to collect the user data. It improve the check speed.
Tested only on Debian Squeeze x86_64.
If I right understood the man page, it should work on any system conforming to POSIX.1-2001.
From git format-patch based on master branch
This change is now in Git and will be included with the next release. Thanks!