[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [TSVN] Algorithm for determining if files are locally modified

From: Chermside, Michael <mchermside_at_ingdirect.com>
Date: 2004-06-22 17:26:46 CEST

Stefan writes:
> Subversion will soon be replacing the last step of this algorithm
> (comparing byte by byte) with an MD5 checksum.

I'm just curious: why? Since computing an MD5 checksum still requires
reading the entire file, I wouldn't think it would be any more
efficient -- less so actually. And although MD5 collisions are (very!)
unlikely, full-text collisions are impossible. Plus we give up the
ability to quit reading after discovering a difference partway through
the file. So what's the advantage? Are the MD5's cached someplace?

-- Michael Chermside

This email may contain confidential or privileged information. If you believe you have received the message in error, please notify the sender and delete the message without copying or disclosing it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Jun 22 18:35:25 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.