Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simdjson as decoder #81

Open
ricardoper opened this issue Apr 15, 2020 · 1 comment
Open

simdjson as decoder #81

ricardoper opened this issue Apr 15, 2020 · 1 comment

Comments

@ricardoper
Copy link

Hello,

Please, consider using simdjson as default decoder because the parse times are impresive.

About 50% less time to parse the "189MB-JSON-Document" for the simdjson-go version.

gojsonq - 3.919751905s
simdjson - 2.049345876s

( go1.14.2 linux/amd64 )

Regards,
Ricardo Pereira.

@kshji
Copy link

kshji commented Jun 9, 2023

faster readfile JSON

jsonq.go:

import:
remove "io/ioutil"
add "os"

//bb, err := ioutil.ReadFile(filename)
bb, err := os.ReadFile(filename)

io/ioutil: "Deprecated: As of Go 1.16, the same functionality is now provided by package io or package os."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants