Work-in-progress: New #RStats JSON library

Early results on a microbenchmark look promising!

Fastest JSON parser for R?

Note: Benchmark is not indicative of real-world use cases. Performance gap narrows on larger examples. Benchmarking known to cause cancer in mice.

#SaturdayCoding

@coolbutuseless That is amazing!

Have you looking at writing R objects to json?

@emilhvitfeldt Yep.

Creating JSON from R objects looks promising as well.

#RStats

@coolbutuseless @emilhvitfeldt wow, that does indeed look promising. Are there plans for it to eventually make it to CRAN? This could speed up {mapview} et al. quite a bit (using jsonify ATM).

@tim_salabim Cran eventually. Still quite a bit to go from this proof-of-concept.

Is there anything in your current use of jsonify that you'd like to change if you could? Na/null handling in your common cases that don't work well? Structures that don't get passed the way you'd like?

@coolbutuseless I'll take a look but don't think so. jsonify was made out of a very similar need to what mapview needs

@tim_salabim If nothing springs to mind, then that's probably a good thing!

What were the reasons you went with jsonify instead of jsonlite? Speed? Linking directly at the C-level? something else?

@coolbutuseless simply speed for passing the data from R to JS to be mapped