-
Notifications
You must be signed in to change notification settings - Fork 0
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
Speedup Unmarshalling #4
Comments
Hi Nikolay, and thank you. I shall add the same sort of lookup maps as I have in my iso3166-pkg to improve resolving string values to constants. |
ferdypruis
added a commit
that referenced
this issue
Jun 11, 2022
This change has a side-effect of fixing a bug where a historic currency would be returned for a reused numeric code. |
ferdypruis
added a commit
that referenced
this issue
Jun 11, 2022
Please give v1.2.1 a try |
Works like a charm. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for awesome lib! I like how you structured currencies, methods, iota. very good.
I used it in my fpmoney package: https://github.com/nikolaydubina/fpmoney
I noticed that casting string or []byte to this enum is prohibitively expensive. It is more expensive that just string.
I suggest you switching to switch case + adding benchmarks in this repo.
Please refer to repo for details.
Thanks!
once again, nice work!
The text was updated successfully, but these errors were encountered: