Skip to content

Faster parser using FFI? #450

Closed
Closed
@winterland1989

Description

@winterland1989

Recently we found a bottleneck in our data pipeline which read json from upstream and routing them into downstream, during benchmark aeson show the expected throughtput(5070MB/s), but a nodejs guy in our team showed that v8 can do even better(about 35 time faster on parsing).

I tried many optimization including use multiple ghc thread and Chan, but still can't defeat a single threaded v8 on parsing, on the other hand, encoding seems on pair with v8. it makes me wondering if we can do better by use some fast c code, for example like what json-stream does. Any idea welcomed!

N.B. In benchmark aeson still beat go version, this's not a complaint thread, just want to start a discussion on further optimization possibilities : )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions