1. Miki Tebeka
  2. clj-digest

Source

clj-digest / src / digest.clj

Author Commit Message Date Builds
mor...@twoticketsplease.de
Fix File Digestible implementation
Branches
protocolize
mor...@twoticketsplease.de
Merge protocol switch with upstream
Branches
protocolize
mor...@twoticketsplease.de
Switch from multimethod to protocol Since the multimethod dispatches on the given message's type anyway we may as well use a protocol here. This yields better performance in general and especially in multi-threaded scenarios since in Clojure < 1.4 multimethod dispatch is synchronized (see CLJ-988).
Branches
protocolize
Craig Ludington
Use with-open to close the new FileInputStream in the digest method taking a File as an argument. I don't know how to write a test for the file descriptor leak -- without looking at a /proc filesystem, or parsing the output of lsof. I've tested this at the REPL and it works (and fixes a nasty file descriptor leak in my own program).
...@daaku.org
remove use of reflection This is what `lein2 check` showed before the fixes (all the use cases are fixed): Reflection warning, digest.clj:20 - call to read can't be resolved. Reflection warning, digest.clj:22 - call to copyOf can't be resolved. Reflection warning, digest.clj:32 - reference to field getDigestLength can't be resolved. Reflection warning, digest.clj:33 - reference to field digest can't be resolved. Reflecti…
...@daaku.org
remove trailing whitespace
Miki Tebeka
Clojure 1.3 and dynamic
Miki Tebeka
Correct signature length
Miki Tebeka
Simpler byte-seq
Tags
1.2.0
Miki Tebeka
Right handling of files etc
Miki Tebeka
Comments
Miki Tebeka
docstring and make create-fns private
Miki Tebeka
Initial import