Skip to content

perf: 深度优化 reset_done/backend set_state 热路径 #679

Description

@TATP-233

目标

针对 #665 中未完成的 reset_done/backend set_state 瓶颈,建立可复现 profiling,并在 owner layer 优化 reset 热路径。

背景

#665 的远端实测显示,task-specific Numba 已明显降低 G1 update_state hot slice,但 collector 端到端收益继续被 reset/backend 侧稀释。旧数据中 G1WalkFlat/Motrix 的 reset_done 与 update_state 同量级,且 reset call 主要落在 backend set_state;G1MotionTracking 还包含 reset plan、backend set_state、reset observation/body-pose getter 等项。

当前已完成的部分:G1MotionTracking reset observation 已改用 row-wise body pose;但 reset_done/backend set_state 仍未做深度拆分和 owner-layer 优化。

范围

非目标

完成标准

  • reset_done/backend set_state 有可复现细分报告。
  • 至少一个 G1 task 在 Motrix collector-only e2e 中能看到 reset_done 明确下降。
  • benchmark 结果能说明优化前后 reset_done 占 collector total/non-physics 的比例变化。

Refs: #665, #678

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions