`pyright` type checking is very slow
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
Start by reproducing the issue with the test.py example and pyright --outputjson, comparing results with and without show_graph_report(1, 2). Trace the binaryninja.interaction.show_graph_report API and its exposed type information to identify what causes the evaluation slowdown. Done means importing and using it no longer causes the reported drastic increase in pyright time.
由索引模型根据 Issue 内容生成。
描述
Version and Platform (required):
- Binary Ninja Version: 6.0.10601 (can't easily test dev for packaging reasons)
- Edition: Personal
- OS: NixOS
- OS Version: 26.05
- CPU Architecture: x64
Bug Description:
Importing and using binaryninja.interaction.show_graph_report causes pyright evaluation time to rise from 6s to ~40s.
Steps To Reproduce:
- Create
test.py - Paste:
from binaryninja.interaction import show_graph_report
show_graph_report(1, 2)
- Run
pyright --outputjson test.py - Observe
timeInSecto be vastly larger than normal (~40s for my system) - Comment out
show_graph_report(1, 2) - Rerun pyright and observe
timeInSecof below 1s
Expected Behavior:
Importing show_graph_report should not cause a drastic increase in pyright evaluation time.
Screenshots/Video Recording:
If applicable, please add screenshots/video recording here to help explain your problem.
Binary:
If applicable, please provide us with the binary to help us work with the issue faster. Here are a few options:
Additional Information:
I'm using this to get pyright to discover the api in my dev env:
BINJA_ROOT=$(cat "$HOME/.binaryninja/lastrun" | tr -d '\n')
export PYTHONPATH="$BINJA_ROOT/python:$PYTHONPATH"
- 主要语言
- C++
- 星标
- 1.3k
- 派生
- 297
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 21
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Vector35/binaryninja-api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
Vector35/binaryninja-api#8621 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
Vector35/binaryninja-api#8617 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Vector35/binaryninja-api#8589 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
Vector35/binaryninja-api#8540 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
Vector35/binaryninja-api#8446 ·
维护者通常 2 天内回复
查看 Vector35/binaryninja-api 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
lldb
难度 2/5 1-3 小时 新手友好度 85/100
llvm/llvm-project#229592 · 11 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 94/100
llvm/offload-test-suite#1560 ·
维护者通常 1 天内回复
-
agent:Windows bug MEDIUM performance tooling
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复