3 ms·
That's very neat. Would you mind posting a link to your version from the comments on my article? Thanks. I learnt Haskell before I tried using Clojure and real
by mreid 17y ago
That's very neat. Would you mind posting a link to your version from the comments on my article? Thanks.
I learnt Haskell before I tried using Clojure and really like it as a language. It doesn't surprise me that it runs faster. I'm guessing the feature value look-ups don't involve the extra unboxing that Java's maps do.
- a-priori 17y agoSure, just cross-posted it. Types in Haskell are boxed as well, though it's possible to get around this with some GHC-specific hackery, I haven't done it. But the biggest problem is the parsing code -- it actually spends around 70% of the runtime parsing the input! Changing to regular expressions may help that, but I gave up trying to find good documentation for Text.Regex.Posix.