On Fri, May 01, 2009 at 03:18:16PM +0100, Darren J Moffat wrote:

> Given you already depend on OpenSSL anyway why is it preferable to use the 
> (very likely slower) Python hashlib version than a highly optimised (using 
> appropriate cpu asm code) OpenSSL version ?

hashlib has a back-end that links against libcrypto, and uses that if it's
been built, but has its own fallbacks otherwise.  So by using hashlib, we
don't have a direct dependency on openssl, but will use it if we can.  This
makes the pkg(5) code more portable, but still get the performance we want
on our core platforms.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to