FROM : Martin Redington
DATE : Wed Apr 02 02:04:29 2008
On 2 Apr 2008, at 00:46, Jean-Daniel Dupas wrote:
>
> Le 2 avr. 08 à 01:36, stephen joseph butler a écrit :
>> On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington
>> <m.<email_removed>>
>> wrote:
>>
>>> I'm running /sbin/md5 via an NSTask on a number of files (3,000 or
>>> so, with a new NSTask each time).
>>
>>
>> This would run a lot faster (and avoid fd issues) if you used
>> libcrypto. Try
>> "man EVP_DigestInit" to get an idea of where to start.
>
>
> And this would not require libcrypto dependency if you use
> CommonDigest that is part of the Mac OS X libSystem. (usr/include/
> CommonCrypto/CommonDigest.h) and that is not more complexe than EVP:
>
> extern unsigned char *CC_MD5(const void *data, CC_LONG len,
> unsigned char *md);
Ah, that's interesting, although I think I have other libcrypto
dependencies anyway.
It looks like the incremental functions are the ones I want. The
duplicate files tend to be small in practice (surprisingly so,
actually), but can be of arbitrary sizes.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/m.redington%
> 40ucl.ac.uk
>
> This email sent to m.<email_removed>
>
DATE : Wed Apr 02 02:04:29 2008
On 2 Apr 2008, at 00:46, Jean-Daniel Dupas wrote:
>
> Le 2 avr. 08 à 01:36, stephen joseph butler a écrit :
>> On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington
>> <m.<email_removed>>
>> wrote:
>>
>>> I'm running /sbin/md5 via an NSTask on a number of files (3,000 or
>>> so, with a new NSTask each time).
>>
>>
>> This would run a lot faster (and avoid fd issues) if you used
>> libcrypto. Try
>> "man EVP_DigestInit" to get an idea of where to start.
>
>
> And this would not require libcrypto dependency if you use
> CommonDigest that is part of the Mac OS X libSystem. (usr/include/
> CommonCrypto/CommonDigest.h) and that is not more complexe than EVP:
>
> extern unsigned char *CC_MD5(const void *data, CC_LONG len,
> unsigned char *md);
Ah, that's interesting, although I think I have other libcrypto
dependencies anyway.
It looks like the incremental functions are the ones I want. The
duplicate files tend to be small in practice (surprisingly so,
actually), but can be of arbitrary sizes.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/m.redington%
> 40ucl.ac.uk
>
> This email sent to m.<email_removed>
>






Cocoa mail archive

