Re: Suggestion for file type detection approach
- From: Alexander Larsson <alexl redhat com>
- To: Jeffrey Stedfast <fejj ximian com>
- Cc: Arvind Narayanan <arvindn meenakshi cs iitm ernet in>, gnome-devel-list gnome org
- Subject: Re: Suggestion for file type detection approach
- Date: 13 Jan 2004 16:32:32 +0100
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.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]