Consider dropping ``Node::update()`` method

オープン
#188 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
backend

調査の方向性

まず、ノード実装内での Node::update() と、先行ノードから後続ノードへの伝播を行うその呼び出し箇所を追跡します。更新情報を使用しているノードがあるか確認し、それを削除した場合に遅延状態更新とスカラー性能に及ぼす影響を評価します。完了には、方針を決定し、それに対応する実装と検証を行うことが必要です。

索引モデルが issue の本文から書いたものです。

説明

bug enhancement question

Currently the Node design includes a Node::update() method. This method is called by the node's predecessors if they have updates they want to propagate to the node. In principal this allows nodes to more efficiently check their predecessors for updates or to eagerly update their state. However, as of writing (Dec 2024) no nodes actually use this information, and many nodes don't actually call their successor's update() method.

With this in mind, we should consider dropping the notion entirely. The downside is nodes will need to always check every predecessor for updates on each propagation. And it means that all nodes will update their state lazily rather than eagerly. The upside is one less virtual method call/test. Which in the case of many scalars likely has a noticeable performance difference.

主要言語
C++
スター
32
フォーク
38
平均マージ
1日 23時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dwavesystems/dwave-optimization のほかの issue

dwavesystems/dwave-optimization の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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