Re: Suggestion for file type detection approach

On Tue, 2004-01-13 at 10:32, Alexander Larsson wrote:
> On Sun, 2004-01-04 at 17:32, Jeffrey Stedfast wrote:
> > anyways, because pre-caching makes such a huge impact on sniffing, it
> > does suggest that the process is i/o bound (duh, makes sense). and so
> > cacheing these sniff results in EA or some other file or something might
> > definitely be a way to go.
> Not commenting on the general issue, but the EA caching thing is a
> non-starter. Reading an EA is just like reading a normal file, its not
> stored in the dirent. So, given that its as fast to read a block as it
> is to read the few bytes of the mimetype string, reading EAs is bound to
> be the same speed as sniffing.

er, good point. no reason you couldn't have an inode->mime_type mappings
file somewhere in the directory tho... that should be extremely fast.


> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc 
>                    alexl redhat com    alla lysator liu se 
> He's an obese misogynist gangster on the run. She's a wealthy foul-mouthed 
> safe cracker with the soul of a mighty warrior. They fight crime! 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  -

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