Making diff fast (was Re: Some notes on distributed SCM)

Aaron Bentley aaron.bentley at utoronto.ca
Sun Apr 10 23:47:33 BST 2005


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

Daniel Phillips wrote:
> On Sunday 10 April 2005 18:17, Aaron Bentley wrote:

>>This is what Arch does, and it's quite slow on large trees.  Robert
>>Collins has recently improved this in Baz, but it doesn't change the
>>fact that it's an O(versioned files) operation, rather than O(changed
>>files).
> 
> 
> But statting the full working copy kernel tree takes less than .1 second if 
> the dentries are in cache, and it takes less than 5 seconds to get them in 
> cache.  What is wrong with that?

5 seconds isn't fast enough.  There's a huge psychological difference
between 5-second and subsecond response times.  At 5 seconds, it's still
an awkward delay.  If you just want a reminder of what you changed, it's
annoying.

If we can find ways to make operations O(changed files), then we avoid
penalizing people with large projects.

If subsecond is the common case, that's great.  Otherwise, I really do
believe there's room for improvement.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCWa0F0F+nu1YWqI0RAhxAAJ9xV6EcDy6Dwr/zTHv9DoQpuiqihQCcCGKB
c7wAVemT81/VyAx7tyasgqs=
=etB9
-----END PGP SIGNATURE-----




More information about the bazaar mailing list