[Haskell-cafe] Fast JSON validation - reducing allocations

David Turner dct25-561bs at mythic-beasts.com
Fri May 12 10:24:23 UTC 2017

On 12 May 2017 at 11:00, Arjen <arjenvanweelden at gmail.com> wrote:

> Happy to read that you have more success than I with parListChunk.
> I expect(ed) the sparks to be cheap, so this might help if the various
> incoming streams are very unbalanced in length and/or message sizes.
> I agree that multi-processing a single stream does not make much sense
> if you already have multiple concurrent streams.
> Nice to see that adding on parallelism in Haskell (GHC) is that easy
> (in this case) and with a very good speed-up factor!
> kind regards, Arjen

Ah, ok, this is strange. The production system is definitely faster with
the parallel strategy (on one stream) but my Criterion benchmarks are much
slower. I've updated the code and results on Github (
https://github.com/DaveCTurner/json-validator). Probably not going to be
able to look at the parallel version much more, but thought you might like
a look.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170512/243549c2/attachment.html>

More information about the Haskell-Cafe mailing list