b60213dd39bdcfbbdfa02499e357a0b1397f135d
Phase 1: 并行化容器启动 - docker_mgr.start_all/stop_all 使用 ThreadPoolExecutor - 预估 10 节点启动从 15-20s → 2-3s Phase 2: Docker API 异步化 - state.py: start/stop 中 Docker/teardown 调用用 asyncio.to_thread() - routes_nodes.py: exec/logs 端点异步化 - 消除事件循环阻塞 Phase 3: Telemetry 性能优化 - DockerMgr 新增后台状态缓存刷新线程 - param_store Queue 设 maxsize=64 防泄漏 Phase 4: Wall Pacer 运行时优化 - 自适应 sleep 维持目标频率 - FlowMonitor 增量更新替代全量重建 - _get_node_phy() 缓存 - main.py 预加载 ns-3 绑定摊销 JIT Phase 5: Netns 优化 - 线程本地 IPRoute socket 复用 测试: - 新增 pytest 后端单元测试 (30 测试) - 新增 vitest 前端单元测试 (9 测试) - 更新 BASELINE-METRICS Co-Authored-By: Claude Opus 4.7 <[email protected]>
Languages
TypeScript
49.5%
Python
45.9%
Shell
2.6%
JavaScript
1%
CSS
0.6%
Other
0.4%