Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 508 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 508 Bytes

fakesimdjson builds a simdjson-go tape using the stdlib's JSON parser.

It is slow and does a lot of allocations. This is a workaround to run programs using simdjson-go on developer's machine with other architecture than amd64 (like the M1 MacBook) until simdjson-go has a arm64 or a generic version, see minio/simdjson-go#51 for details.

Usage:

if simdjson.SupportedCPU() {
	parsed, err = simdjson.Parse(data, reused)
} else {
	parsed, err = fakesimdjson.Parse(data)
}