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

USI の info コマンド受信に関するパフォーマンス改善 #918

Open
sunfish-shogi opened this issue Aug 8, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sunfish-shogi
Copy link
Owner

sunfish-shogi commented Aug 8, 2024

概要

エンジンから大量の読み筋を受け取ったときの処理時間を改善する。

詳細

エンジンから大量の読み筋を短時間に受け取ると、1 回の function call に対する処理時間が長くなる。
JavaScript はスレッドによる並行処理を実装できないので、その処理の間、後続のイベントをブロックしてしまう。
対局中の着手とタイミングがぶつかると、CSAサーバーへの着手の送信を遅延させてしまう懸念もある。

@sunfish-shogi sunfish-shogi added the enhancement New feature or request label Aug 8, 2024
@sunfish-shogi sunfish-shogi added this to the v1.17.0 milestone Aug 8, 2024
@sunfish-shogi sunfish-shogi self-assigned this Aug 8, 2024
@sunfish-shogi
Copy link
Owner Author

考慮事項

  • 対局時は通常 MultiPV = 1 なので、その条件でやねうら王が読み筋を出力する最大速度(指し手 / sec)で計測する。
  • USIMonitor のタイマーが 500ms なのを変更すべきかどうか。

@sunfish-shogi sunfish-shogi modified the milestones: v1.17.0, v1.18.0 Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 進行中
Development

No branches or pull requests

1 participant