simdjson_nodejs icon indicating copy to clipboard operation
simdjson_nodejs copied to clipboard

a idea to enhance simdjson.parse performance

Open theweipeng opened this issue 2 years ago • 0 comments

hello, I find that the simdjson.parse is very slow. i think if your use napi to create string, nodejs would copy the string bytes. the bestway to create string is use v8's String.substring, which would create a sliceString in v8 that no need copy memory. simdjson can generate a new buffer, and use javascript to constructe the json object via the buffer.

theweipeng avatar Mar 23 '23 02:03 theweipeng