grain icon indicating copy to clipboard operation
grain copied to clipboard

stdlib: Use a streaming optimized parser in json

Open spotandjake opened this issue 1 year ago • 0 comments

The current implementation of json makes use of grain's parseFloat, this has multiple disadvantages namely that we have to prevalidate the input, and build a buffer for parsing numbers instead of parsing them in a streaming manner. this could be optimized by using a custom streaming-optimized parser.

Some notes on how this could be done are here: https://github.com/grain-lang/grain/pull/1133#issuecomment-1383142914

spotandjake avatar Jul 04 '23 01:07 spotandjake