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

未关闭
#188 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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 小时
30 天内合并 PR
20

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dwavesystems/dwave-optimization 的其他 Issue

查看 dwavesystems/dwave-optimization 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。