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

Actually cache EnumValues#internalMap #4041

Merged

Conversation

iProdigy
Copy link
Contributor

It appears EnumValues#internalMap is meant to be cached (upon first execution), but _asMap was never updated with the computed value.

Original commit: 003e5b0

@cowtowncoder
Copy link
Member

Thank you @iProdigy -- indeed, a silly oversight here! Thank you for fixing.

@cowtowncoder cowtowncoder merged commit 494924c into FasterXML:2.16 Jul 15, 2023
3 checks passed
@cowtowncoder cowtowncoder changed the title perf: actually cache EnumValues#internalMap Actually cache EnumValues#internalMap Jul 15, 2023
@cowtowncoder cowtowncoder added performance Issue related to performance problems or enhancements 2.16 Issues planned for 2.16 labels Jul 15, 2023
cowtowncoder added a commit that referenced this pull request Jul 15, 2023
@iProdigy iProdigy deleted the fix/enum-values-internal-map-cache branch July 15, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.16 Issues planned for 2.16 performance Issue related to performance problems or enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants