Re: [PATCH] multi item packed files

2005-04-22 Thread Krzysztof Halasa
Linus Torvalds [EMAIL PROTECTED] writes:

 And dammit, if I'm the original author and likely biggest power-user, and 
 _I_ can't be bothered to use special filesystems, then who can? Nobody.

If someone is motivated enough, and if the task is quite trivial (as it
seems to be) someone may try it. I can see nothing wrong with it as long
as it doesn't affect other people.

 This is why I absolutely do not believe in arguments like if your
 filesystem doesn't do tail packing, you shouldn't use it or if your
 don't have name hashing enabled in your filesystem it's broken.

Of course. But one may consider using a filesystem with, say, different
settings. Or a special filesystem for this task, such as CNFS used by
news servers (it seems news servers do quite the same what git does,
except they also purge old contents, i.e., container files don't grow up).

 I'm perfectly willing to optimize for the common case, but that's as far 
 as it goes. I do not want to make fundamental design decisions that depend 
 on the target filesystem having some particular feature.

The optimization would be (in) the underlying filesystem (i.e., the OS
thing, or possibly a shared preloaded library?), not git itself.
-- 
Krzysztof Halasa
-
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] multi item packed files

2005-04-21 Thread Krzysztof Halasa
Linus Torvalds [EMAIL PROTECTED] writes:

 Wrong. You most definitely _can_ lose: you end up having to optimize for
 one particular filesystem blocking size, and you'll lose on any other
 filesystem. And you'll lose on the special filesystem of network
 traffic, which is byte-granular.

If someone needs better on-disk ratio, (s)he can go with 1 KB filesystem
or something like that, without all the added complexity of packing.

If we want to optimize that further, I would try doing it at the
underlying filesystem level. For example, loop-mounted one.
-- 
Krzysztof Halasa
-
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html