typicode / lowdb

Simple and fast JSON database
MIT License
21.3k stars 918 forks source link

Whether to use faster json serialization method #556

Closed wll8 closed 9 months ago

wll8 commented 1 year ago

Whether to use faster json serialization method

If speed hits a bottleneck, I don't mind writing some scheme to improve it.

In addition, scheme has other uses, such as generating API text.

https://dev.to/samchon/i-made-10x-faster-jsonstringify-functions-even-type-safe-2eme

refer to

This is probably the simplest solution compared to the current solution without a database adapter.

  1. Developers customize the scheme of json
  2. stringify generates templates and methods according to scheme
  3. The developer uses the method to generate
apollo-24 commented 1 year ago

Let's add the fix

typicode commented 9 months ago

Thanks a lot for the suggestions and links :+1: I think a third-party adapter would be a good fit for this. For the moment, I'd rather use native JSON parser to keep things simple.