FAForever / FAForever/server

Maximum precision for float serialization

オープン
#875 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
Python
スター
72
フォーク
84
平均マージ
5時間 11分
マージ済み PR(30日)
1

説明

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`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。