simdjson-go
jsonparser
simdjson-go | jsonparser | |
---|---|---|
6 | 15 | |
1,822 | 5,468 | |
0.3% | - | |
4.0 | 0.0 | |
about 1 year ago | 5 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
simdjson-go
-
Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19
Speaking of Go, there's a simdjson implementation for golang too:
> Performance wise, simdjson-go runs on average at about 40% to 60% of the speed of simdjson. Compared to Golang's standard package encoding/json, simdjson-go is about 10x faster.
I haven't tried it yet but I don't really need that speed.
https://github.com/minio/simdjson-go
-
How to Use AVX512 in Golang
I agree. For performance-sensitive situations, C/C++ or Rust is the only choice. However, many developers choose Go or other languages for engineering efficiency. A typical use case of SIMD in Go is simdjson-go. Besides, there are plenty of bindings and ports of simdjson. "Other languages" developers also need performance improvement from native instructions such as SIMD.
- Sonic: A fast JSON serializing and deserializing library
- Whats the fastest JSON unmarshaling package as of right now?
-
What is the best solution to unique data in golang
I suggest to use a streaming library to parse your file. Like jstream or simdjson-go
-
I wrote yet another json parser. It may be a contender for fastest.
You can also try comparing with https://github.com/minio/simdjson-go. It does use a different API, however, would be good to compare nevertheless.
jsonparser
-
Introducing astjson: Transform and Merge JSON Objects with Unmatched Speed in Go
In this article, I will introduce you to a new package called astjson that I have been working on for the last couple of weeks. It is a Go package that allows you to transform and merge JSON objects with unmatched speed. It is based on the jsonparser package by buger aka Leonid Bugaev and extends it with the ability to transform and merge JSON objects at unparalleled performance.
-
What's the best way to unmarshall this nested JSON?
Use this to extract the data value, and handle/unmarshal it accordingly.
- Modification of json string without deserialisation into map/struct
- Christmas giveaway: 10 copies of my book Domain-driven Design with Golang book, also AMA
-
Wasm difficulties in Rust, Haskell, and Go
jsonparser can decode, but can't encode
-
Is there a way to parse unstructured data?
Best I've found is this: https://github.com/buger/jsonparser
-
Why the heck am I getting an empty byte array trying to read a simple json file?
I was actually just trying to get it into a []byte to use this package which claims it works well for unknown data structures.
-
Zq: An Easier (and Faster) Alternative to Jq
`jj` is a little tool I wrote that uses https://github.com/buger/jsonparser
-
Whats the fastest JSON unmarshaling package as of right now?
If you don't know the schema or you only need to access one or two fields in a much larger JSON object, I would recommend https://github.com/buger/jsonparser as it provides an easy API to access specific values without fully unmarshaling. This is an unusual use case though, 9 times out of 10 I would tend to use easyjson.
-
map[string]interface{} decoder
Reading and navigating arbitrary JSON: I've used https://github.com/tidwall/gjson, many others like https://github.com/buger/jsonparser are also out there.
What are some alternatives?
easyjson - Fast JSON serializer for golang.
fastjson - Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection
jstream - Streaming JSON parser for Go
ej - Write and read JSON from different sources in one line
sonic - A blazingly fast JSON serializing & deserializing library
mapslice-json - Go MapSlice for ordered marshal/ unmarshal of maps in JSON
jsonlite - A simple, self-contained, serverless, zero-configuration, json document store.
ojg - Optimized JSON for Go
rjson - A fast json parser for go
jsondiff - Compute the diff between two JSON documents as a series of RFC6902 (JSON Patch) operations
json_benchmark - Python JSON benchmarking and "correctness".
json-to-proto.github.io - convert JSON to Protocol Buffers online in your browser instantly