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

Initialize WKT unmarshalers once #46

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

jhump
Copy link
Member

@jhump jhump commented Aug 28, 2024

Seemed a little awkward that every call to Unmarshal rebuilt this map. This makes it a singleton (that is only read after init, so it's safe).

@jhump jhump force-pushed the jh/dont-reinit-custom-unmarshalers-every-time branch from d28270d to 89140b1 Compare August 28, 2024 19:43
@jhump jhump marked this pull request as ready for review August 28, 2024 20:07
@jhump jhump requested a review from Alfus August 28, 2024 20:07
@jhump jhump merged commit 233d8eb into main Aug 28, 2024
5 checks passed
@jhump jhump deleted the jh/dont-reinit-custom-unmarshalers-every-time branch August 28, 2024 22:37
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.

2 participants