> > thus enable all Clojure developers to have lightning > fast Base64 encoding/decoding? >
This is already possible, if you're using leiningen: put the file in src/util/ and compile, you can now call it as usual. On Thu, Oct 6, 2011 at 11:16 AM, Rok Lenarcic <rok.lenar...@gmail.com>wrote: > I use Base64 encoding a lot and the slow implementation is hurting a > lot. It's slower than Sun misc encoder/decoder > and that one is very very slow. I was using Sun's implementation a bit > and it took 80 seconds to encode a 56 MB file. > Then I found this: http://migbase64.sourceforge.net/ > It loaded from a disk drive and encoded the same file in 0.3 seconds! > Would it be possible to have Clojure contrib use an implementation > like this and thus enable all Clojure developers to have lightning > fast Base64 encoding/decoding? I know having everything implemented in > clojure is a big thing around here but in case of Base64 encoding and > regular expressions I think the language would benefit greatly by > having implementations which are orders of magnitude faster than > default implementations in java. Did I say regular expressions? > http://www.tusker.org/regex/regex_benchmark.html > Like Rich Hickey said: why should we reinvent file streams and sockets > in each language? > I think the same principle applies to Base64 and regular expressions, > especially when in Clojure we have an opportunity to replace standard > java implementations with ones that are orders of magnitude faster. > What are your views on this? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en