Re: new mime detection approach



Alexander Larsson <alexl redhat com> writes:

> The slow part about sniffing is reading the first few bytes of the
> file. You have to do several seeks on the hard-drive, and each seek is
> delayed by the HD seek time and on average half a rotational
> delay. This adds up to about 10-15 msecs per file, and faster
> harddrives don't really make this better. In fact, Alan Cox claimed
> that opening a new file takes about the same time as reading another 8
> meg from a continuous file (on modern disks).

Wow, no wonder why Nautilus is so slow when opening a directory with
hundreds of files. Definitely a step in the right direction what you
guys have done, IMHO. Thanks!

Eloy.-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]