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

Disable string interning in Jackson JSON since it causes GC issues #346

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

karthikrg
Copy link
Contributor

@karthikrg karthikrg commented Jul 2, 2020

  1. Make JsonFactory parameterized so that multiple codec instances can share the same factory if necessary
  2. Make the default factory a static singleton for factory reuse to minimize garbage

Interning seems to be messing with batch_get where the keys are not schema but are values, resulting in a large number of strings being interned.

@karthikrg karthikrg force-pushed the master branch 2 times, most recently from 3af70bd to 98b98a7 Compare July 2, 2020 16:54
@karthikbalasub
Copy link
Contributor

Also, please update the commit description to include the batch_get issue wrt interning

…C issues.

Make JsonFactory parameterized so that multiple codec instances can share the same factory if necessary
@karthikbalasub karthikbalasub merged commit dbc5a1b into linkedin:master Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants