[sane-devel] scanimage timeouts

Sergey Vlasov vsu@altlinux.ru
Wed, 22 Jan 2003 16:24:09 +0300

On Tue, Jan 21, 2003 at 23:48:38 +0100, Henning Meier-Geinitz wrote:
> I quick test shows that opening non-existing devices with devfs is
> just extremely slow. The same goes for stat() instead of open().
> 1000 stats take 11 seconds if the file does not exist and 0.01
> seconds if it exists :-(((

devfs has a special handling for file lookup - it catches attempts to open
non-existent files and passes the requests to devfsd, which then can load
the required module.

Because of this requirement, opening a non-existent device with devfs
always will be slow.