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

defaulting keys to String and using an efficient HashMap for small data could increase the performance. #11

Open
sandeepjakkaraju opened this issue May 23, 2023 · 1 comment

Comments

@sandeepjakkaraju
Copy link

Dear Sir,

Since most of the JSON keys are string for readability and best practise. It would be efficient to use Strings as keys by default like other JSON libraries. I found that it not only increases Parsing performance (PUT) but also GET operations.

Please consider defaulting keys to String and using an efficient HashMap for small data could increase the performance.

Thanks
Sandeep

@RalleYTN
Copy link
Owner

I will consider using strings as default keys for objects. However, I will not change the type of map. The problem with the default HashMap is that it messes with the order in which key-value pairs are listed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants