mountainMath / mountainMath/cancensus

Consider replacing jsonlite with rcppsimdjson

Open
#153 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
90
Forks
14
PR merge metrics
No merged PRs in 30d

Description

The new c++ based json parser simdjson is making some waves with very impressive benchmarks compared to established parsers like jsonlite. An R implementation just hit CRAN: https://github.com/eddelbuettel/rcppsimdjson.

Perhaps risky to adopt just yet but we should monitor. Possible downside would be adding an Rcpp dependency. But the upside could be significant improvement in parsing speed of long datasets for cancensus and cansim.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how cancensus and cansim parse long datasets, then compare jsonlite with the R package rcppsimdjson and assess the possible Rcpp dependency. Done means having benchmark evidence and a documented decision about whether replacing the parser is worthwhile.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, r
Domain
data, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.