Re: file as a directory
From: David Masover
Date: Fri Dec 17 2004 - 19:24:39 EST
-----BEGIN PGP SIGNED MESSAGE-----
Hans Reiser wrote:
| Peter Foldiak wrote:
|> On Thu, 2004-12-16 at 18:48, Hans Reiser wrote:
|>> David Masover wrote:
|>>> Speaking of which, how much speed is lost by starting up a process?
|>>> The idea of caching is that running
|>>> cat *; cat *; cat *; cat *; cat *
|>>> is probably slower than
|>>> cat * > baz; cat baz; cat baz; cat baz; cat baz; cat baz
|>> Only for small files where the per file overhead of a read is
|> But if the glued "file" is a stream (or pipe?) you can't do everything
|> with it (e.g. seek() ) that you could do with a proper file, right?
| It does not need to be a pipe-like file. Seek can be implemented for a
| composite (glued) file.
Composite plugins are likely fairly simple (cat *) so they shouldn't be
required to implement seek on their own. In OO terms, they should
"inherit" a more global facility, which would be based on cached pipes.
But definitely for files that are likely to be large, but still seekable
(zipfiles), you want the plugin to provide its own seek support.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/