Skip to content

Fallback to build simdjson-go tape using only encoding/json

License

Notifications You must be signed in to change notification settings

kiwicom/fakesimdjson

Repository files navigation

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)
}

About

Fallback to build simdjson-go tape using only encoding/json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages