Skip to content
Discussion options

You must be logged in to vote

Parsing large or complex data can indeed take a while which is why I track parsing speed with a medium-sized example file (you can see the results in the benchmark folder in the main tree; the file has about 4k6 chars and parsing currently takes about 1 second).

Here are some ideas to improve the parsing speed:

  1. Make sure that you update jsonparse to the most recent version. Parsing time was reduced a lot with version 1.4.0 and again a bit with version 1.5.0.
  2. You can try to add skip structures as option to the \JSONParse(FromFile) command. So, for example, \JSONParse[skip structures]{\myjson}{ { "foo" : "bar" } } should be considerably faster than \JSONParse{\myjson}{ { "foo" : "bar" } }.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jasperhabicht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant