FAForever / FAForever/server

Maximum precision for float serialization

Offen
#875 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
good first issue
Vorherrschende Sprache
Python
Sterne
72
Forks
84
Ø Merge
5 Std. 11 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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`

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.