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

Maximum precision for float serialization #875

Open
Askaholic opened this issue Jan 1, 2022 · 0 comments · May be fixed by #905
Open

Maximum precision for float serialization #875

Askaholic opened this issue Jan 1, 2022 · 0 comments · May be fixed by #905

Comments

@Askaholic
Copy link
Collaborator

Askaholic commented Jan 1, 2022

We should explicitly set the number of decimal places to use for float serialization. This will probably have to be done by subclassing the default JSONEncoder and using a custom float wrapper that knows how to serialize itself with a certain precision. It might also be possible using the standard library Decimal type. We should make sure to consider the impact on the performance of serialization.

https://docs.python.org/3.9/library/json.html#json.JSONEncoder

Fields affected:

  • queue_pop_time_delta in matchmaker_info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant