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

Minor performance improvements to NullToEmptyCollection/Map #742

Merged
merged 2 commits into from Dec 16, 2023

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Dec 16, 2023

I checked the implementation and found that NullsAsEmptyProvider simply calls valueDeserializer.getEmptyValue, so there was no need to specifically wrap it.
https://github.com/FasterXML/jackson-databind/blob/15fa6ec14608790664f214ab53688b68aad23dbd/src/main/java/com/fasterxml/jackson/databind/deser/impl/NullsAsEmptyProvider.java#L30

Skipping this process will improve performance, albeit slightly.

From ProjectMapK/jackson-module-kogera@997a536

@k163377 k163377 merged commit 7369aad into FasterXML:2.17 Dec 16, 2023
12 checks passed
@k163377 k163377 deleted the empty-value branch December 16, 2023 16:51
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.

None yet

1 participant