amnaredo / test

0 stars 0 forks source link

Swap out JSON parser for a faster implementation #280

Open amnaredo opened 2 years ago

amnaredo commented 2 years ago

uPickle's current JSON parser is forked from https://github.com/typelevel/jawn. While it's reasonably fast, parsing remains a significant portion of uPickle's execution time.

The state of the art has since moved on, and faster JSON parsers have appeared:

We should fork one of the more modern JSON parsers so we can benefit from their JSON parsing performance. They should be able to plug directly into uPickle's Visitor-based architecture without any code changes on the uPickle side

uPickle's JSON renderer could probably be swapped out for a faster implementation as well ID: 336 Original Author: lihaoyi

amnaredo commented 2 years ago

Some WIP in https://github.com/com-lihaoyi/upickle/tree/borer, which has the Borer JSON parser compiling, but more work is necessary to get it hooked up to uPickle's Visitors Original Author: lihaoyi