Skip to content

viz: keep program UOp in data#15714

Merged
Qazalin merged 2 commits intotinygrad:masterfrom
Qazalin:refactor_prg
Apr 13, 2026
Merged

viz: keep program UOp in data#15714
Qazalin merged 2 commits intotinygrad:masterfrom
Qazalin:refactor_prg

Conversation

@Qazalin
Copy link
Copy Markdown
Collaborator

@Qazalin Qazalin commented Apr 13, 2026

it's recomputable but expensive with the for loop. Since rewrite names can repeat, the data structure needs to stay as a list.

time extra/viz/cli.py -p -s "AMD" on llama went from 20s to 10s, same impact on viz web startup.

@github-actions
Copy link
Copy Markdown
Contributor

Changes

Name                     Lines    Diff    Tokens/Line    Diff
---------------------  -------  ------  -------------  ------
tinygrad/viz/serve.py      654      +0           17.2    -0.0


total lines changes: 0

@Qazalin Qazalin merged commit 355e272 into tinygrad:master Apr 13, 2026
51 checks passed
@Qazalin Qazalin deleted the refactor_prg branch April 13, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant