simdjson-java
simdjson-java copied to clipboard
A Java version of simdjson, a high-performance JSON parser utilizing SIMD instructions
If there are duplicate keys in the JSON, the current JSON parser will take the value corresponding to the first occurrence of the key: inputString: ``` public class SimdJsonTest {...
We should document the public API, e.g. the public methods in `org.simdjson.SimdJsonParser` and `org.simdjson.JsonValue`.
For debugging purposes, it would be helpful to include information in error messages about what caused a given error, and preferably, where it occurred. For example, instead of returning a...
API
Hi, great work regarding the port to Java 👍 Do you plan on adding an API where I can successively call an iterator and peek for specific tokens as in...
Even tough [JEP 438](https://openjdk.org/jeps/438) states that both *x64* and *AArch64* architectures should benefit from new vector api, currently performance of `simdjson-java` on M1 mac is way worse than other parsers:...
For DOM parser, how to convert JsonValue to byte array or string? For example: ```java byte[] json = toUtf8("{\"a\": {\"b\": \"c\"}}"); JsonValue jsonValue = parser.parse(json, json.length); JsonValue res = jsonValue.get("a");...
When parsing strings with SIMD instructions, vectorized table lookup like `vpshufb` (x64) or `vtbl` (NEON) are critically important. They are very cheap (often run in 1 cycle) and very powerful....
I've been testing the performance of Simdjson recently. The basic test is similar to default test, using twitter.json, as below: ```java @Benchmark public int recordSimdjson() { Set defaultUsers = new...
### Introduction Sometimes users want to parse a JSON object into a map. Let's assume that we have the following example object: ```json { "intKey": 123, "objKey": { "key1": "abc",...