チケット #46273

Introduce counter-shares-index to reduce CPU/memory usage

登録: 2022-12-15 01:19 最終更新: 2022-12-16 04:52

報告者:
担当者:
チケットの種類:
状況:
オープン [担当者決定済み]
コンポーネント:
マイルストーン:
(未割り当て)
優先度:
1 - 最低
重要度:
1 - 最低
解決法:
なし
ファイル:
4

詳細

Currently, server will process each counter of the same type, but that do not make sense for some kind of counter (owned, celebrating, disorder).

This change seems to skip currently processed counter by sharing index. It also modify iterators to check index is smaller than excepted and do not process counter if so. If index is excepted, then we increase excepted value of index and process counter. By this little modifications, each kind of counters will be processed only once. To avoid this, simply change function returns if each counter of this type should share index.

チケットの履歴 (8 件中 3 件表示)

2022-12-15 01:19 更新者: lachu
  • 新しいチケット "Introduce counter-shares-index to reduce CPU/memory usage" が作成されました
2022-12-15 01:20 更新者: lachu
  • 重要度5 - 中 から 1 - 最低 に更新されました
2022-12-16 02:17 更新者: lachu
コメント

@cazfi:

0001-OSDN-TICKET-46273-S-awomir-Lach-slawek-lach.art.pl.patch(10KB)
Working version

It looks it works at least. But patch contains bad whitespaces. I send to allow test it by greater group of people.

2022-12-16 04:52 更新者: lachu
コメント
0001-OSDN-TICKET-46273-S-awomir-Lach-slawek-lach.art.pl.patch(10KB)
Elminates one bug causes server segfault, when there is no counters defined

Sorry I do not tested it properly. I eliminate one evident bug in my code. Code is complicated now, so I do not known if applying this patch is necessary for a while. I tested it more by now and it seems to work, but again, code is not clear, so I do not known if there is no more bugs. Somebody else must test it and read, but for that PR exist.

添付ファイルリスト

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする