report parses every scene-attached script twice (lint and node-paths)
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- performance, tooling
Direzione di ricerca
Read src/scenes/node-paths.ts, src/lint/engine.ts, and src/scenes/report.ts to trace how scripts are parsed in the report flow. Start by checking the existing tests and fixtures, then add a parse counter test for the report path and compare node-path findings before and after the change. Done means each .gd file is parsed once in report and existing node-path findings remain unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Node-path validation parses and walks every scene-attached .gd file a second time with tree-sitter. In report, every script is therefore parsed twice: once by lint and once by node-paths. This is now the largest remaining cost in validate-scenes and report.
Where
src/scenes/node-paths.ts:103-108(prefilter, thenparseGDScript),src/scenes/node-paths.ts:39(fullwalk)src/lint/engine.ts:23,src/scenes/report.ts:46-49
Details
Measured CPU-only:
- A tree-sitter parse costs 1.1 to 1.3 ms per file, and the index walk 0.55 to 0.9 ms.
- The prefilter (
$orget_nodeanywhere in the file) lets almost every real script through. - On 3000 attached scripts,
validateNodePathstook 7.4 s warm and 9.6 s cold, about 75% ofvalidate-scenes(10 s). - In
report, about 6.5 s of 20 to 22 s is the second parse and walk.
Suggested fix
- In
report, collect thepathUsesdata during the lint pass, cached per run by relative path, so each script is parsed once. - For standalone
validate-scenes, usefindAll(root, "get_node")/findAll(root, "call")from the shared index instead of a fullwalk, and tighten the prefilter to/\$["'A-Za-z_%]|get_node(_or_null)?\s*\(/.
Acceptance criteria
-
reportparses each.gdfile exactly once (assert with a parse counter in a test). - Node-path findings are unchanged on the existing fixtures.
Filed by repo-audit/full-audit at e836036. Severity: medium. Effort: M. audit-key: performance|src/scenes/node-paths.ts|validateNodePaths
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 6
- Merge medio
- 1g 21h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/godot-correctness-mcp
-
enhancement good first issue severity: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
TMHSDigital/godot-correctness-mcp#123 ·
I maintainer di solito rispondono entro 2 giorni
-
dependencies good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
TMHSDigital/godot-correctness-mcp#116 ·
I maintainer di solito rispondono entro 2 giorni
-
bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/godot-correctness-mcp#107 ·
I maintainer di solito rispondono entro 2 giorni
-
bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
TMHSDigital/godot-correctness-mcp#106 ·
I maintainer di solito rispondono entro 2 giorni
-
bug good first issue severity: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
TMHSDigital/godot-correctness-mcp#105 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di TMHSDigital/godot-correctness-mcp
Issue simili
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openclaw/openclaw#203385 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nwverse/persona#12800 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/playwright#44289 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno