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

Re: tools location? (was: Re: couple issues)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2000-12-12 00:42:54 CET

Greg Hudson wrote:

>>> GregH built one that operates in a streamy fashion. The APR version
>>> does not (yet).
>>
>> Then I like GregH's (yet). :-)
>
>
> base64 encoding is one of those things where the implementation is so
> small that the interface dominates the code required to do it. I
> don't know if we'll ever get convergence unless we put the concept of
> "generic streams" (svn_{read,write}_fn_t) into aprutil.

What for? O.K., you'll still need a base64 editor for filtering the
delta stream, but it'll just pass chunks of data to the en/decoder in APR.

(Yes, I know that base64 is a ridiculously small bit of code. But I'd
rather avoid duplication, anyway.)

The same can be done for hashing, by the way (md5, SHA-1, RC5, ...),
except that the en/decoder must accept a hash seed so that it starts
each chunk off of the previously computed hash value. Now that's
definitely one thing we don't want to duplicate.

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:16 2006

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