Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try fast-json-stringify in level indexes #216

Open
staltz opened this issue Mar 17, 2021 · 0 comments
Open

Try fast-json-stringify in level indexes #216

staltz opened this issue Mar 17, 2021 · 0 comments

Comments

@staltz
Copy link
Member

staltz commented Mar 17, 2021

Level indexes in db2 use 'json' encoding, which means JSON.stringify / JSON.parse.

https://github.com/fastify/fast-json-stringify is 2x faster than JSON.stringify, but ONLY if the payload is small and fits a strict format, which for level indexes, is true in our case.

@staltz staltz linked a pull request Apr 5, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant