From: Sam S. <sd...@gn...> - 2011-04-05 19:14:59
|
> * Zach Beane <knpu@knpu.pbz> [2011-04-05 13:01:04 -0400]: > > I'd like to have an implementation of the SHA-1 cryptographic hash > function in CLISP. Can you suggest any tricks, implementation-specific > features, etc. that might be used to get good performance? For example, > LispWorks has an INT32 API that can be used to get good performance for > 32-bit arithmetic, and SBCL has modular arithmetic that can be exploited > to inline a lot of work. Is there anything similar for CLISP? I am afraid not. CLISP always runs all code with full safety, there are no optimizations for specific types. If you are concerned with performance, I suggest interfacing to <openssl/sha.h> (using ffi or modules) - you will get a trusted implementation as a bonus. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X http://www.PetitionOnline.com/tap12009/ http://pmw.org.il http://iris.org.il http://openvotingconsortium.org Volume(Pizza of radius Z and thickness A) = PI * Z * Z * A |