FAForever / FAForever/server

Maximum precision for float serialization

Abierto
#875 0 comentarios 0 reacciones 0 asignados Ver en GitHub
good first issue
Lenguaje dominante
Python
Estrellas
72
Forks
84
Merge medio
5 h 11 min
PR fusionados (30 d)
1

Descripción

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`

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.