Re: file as a directory

From: David Masover
Date: Fri Dec 17 2004 - 19:24:39 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
|>> significant.
|>>
|>
|>
|> 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

iQIVAwUBQcN3zXgHNmZLgCUhAQKF1w/7B51wfpaIVi6ap+TVsZ+t3FLPTqyOF24W
lnqSUnM50zlJixQMKLzmZSOUGC/EsDZIVqShAUhniKAp8cvYNCE0HjqZl1b8S0HV
MggehXJJwSfl3/RHCbRXo1URXzSodGLyCsdEhi88viyhilj7+9uJRhxmOx1cO7uS
p/yS3LgpxEEjhDiu09MXnAHuXGTdKB9hQl63HxPwa72uM3Q5M7zCl0p+X+rH9xIj
HgdZMbmoCiA6QmRJzLBq/s0xRo385bfeTHMCwB3aIyYNFeTvJDoZP6IEbi9Ee0DH
Ns9rwJo+B2FPbHKHlmFxZkLVwmnQqr9WemYYybUGNOVdIamn87Ah6/ObvAmM+dQw
dnRF2YVPM9gNv0LSOS3nteNr6ldYzEZWGi24ScPpFrJpZAMBVNarX0zE4+S2Dc75
a733Z2pkOhHUvRPoDVXvUTKC5863cuWH7lgvTfT5eAANG/AANphi2vyFfgT5KWKt
gF+SnRkLiDSfjcqgts036vfpIziz/aM9dZxzgE+j8IjuGNchl/6q1OVt7+WOJOrq
grfOgVB26pFgYFD7ZjJSiZKHGRDJZXrUo4VnUoG43Dy4JZVlG4qpivMO50Ep0GD2
cVFw1/MKP0beAA1S1R5Fh0mLo0jNHlsxSD6XoKjUuL/xjnLpyN/AdmIhQq0mMujY
vYBBaDHYkYc=
=RMFf
-----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/