[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] patch: automatic cacherev and smarter get
From: |
Alfred M\. Szmidt |
Subject: |
Re: [Gnu-arch-users] patch: automatic cacherev and smarter get |
Date: |
Wed, 23 Nov 2005 18:16:11 +0100 |
> Caveats:
> * the number 50 is hard coded; it really should be a value that
> the user can customize.
Before this is viable, it *must* be possible to turn this behaviour
off. On large trees, cacherevs are massively wasteful of space;
revision libraries are often a more efficient solution.
It depends. If you have 50 small patches that fix typos or so, then
on a large tree this is wastefull.
I think a better heuristic on when to create a new cacherev is not on
the _number_ of patches that exist, but how big the collection of all
patches since the last cacherev is in bytes.
So if you have a tree that is 300MiB, and you fix a couple of
documents over 50 revisions, the total size of the patches might be as
low as 300KiB, but using the `number of patches' algorithm, you will
end up with a new cacherev that takes up 300.3MiB. Not very smart.
Using the `total size of previous patches' you won't get a new
cacherev here, but you would get one if you have commited say 20MiB
worth of patches over a period. This is far smarter, IMHO.
- [Gnu-arch-users] patch: automatic cacherev and smarter get, Derek Zhou, 2005/11/22
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get, Mikhael Goikhman, 2005/11/22
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get, Andrew Suffield, 2005/11/23
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get,
Alfred M\. Szmidt <=
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get, Andrew Suffield, 2005/11/23
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get, Mikhael Goikhman, 2005/11/23
- [Gnu-arch-users] Re: patch: automatic cacherev and smarter get, Matthieu Moy, 2005/11/23
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get, Andrew Suffield, 2005/11/25
- Re: [Gnu-arch-users] patch: automatic cacherev and smarter get, Matthew Hannigan, 2005/11/25
- [Gnu-arch-users] Re: patch: automatic cacherev and smarter get, Matthieu Moy, 2005/11/26
[Gnu-arch-users] Re: patch: automatic cacherev and smarter get, Stefan Monnier, 2005/11/25