4 ms·
I'm curious how well could Crystal language handles that huge amount of JSON since most of the Ruby code could be ported over to Crystal. It has a JSON pull pa
by proyb2 8y ago
I'm curious how well could Crystal language handles that huge amount of JSON since most of the Ruby code could be ported over to Crystal.
It has a JSON pull parser to minimize memory usage which is useful for memory constraint environment but at the expense of less performant. If that could be split up with fork Crystal processes, I believe it's feasible.
- vidarh 8y agoThere are stream parsers for JSON for Ruby too, including bindings for C libraries like YAJL - using the default JSON parser is an awful choice for doing comparisons like that given the massive overhead of the amount of objects it'll be creating for no good reason.
- proyb2 8y agoAgree, I believe the benchmark shown Yaji and jq in this repo is useful for you https://github.com/kostya/benchmarks/blob/master/README.md https://github.com/kostya/benchmarks/blob/master/README.md