Skip to content

Fix runtime_artifacts walk performance - #3219

Open
mehrdad2m wants to merge 3 commits into
mainfrom
fix-backline-perf
Open

Fix runtime_artifacts walk performance #3219
mehrdad2m wants to merge 3 commits into
mainfrom
fix-backline-perf

Conversation

@mehrdad2m

@mehrdad2m mehrdad2m commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Context:
Currently there is a performance degradation issue with catalyst.runtime_artifacts where it walks the entire IR operations looking for runtime_artifacts which is unnecessary.

Description of the Change:
It now visits module operations only, instead of every operation in the program.

Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-129402]

@mehrdad2m

Copy link
Copy Markdown
Contributor Author

!benchmark

@dime10

dime10 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

What I don't understand is how a single walk could produce a meaningful degradation, since we do do walks quite often (although I agree recursive walks should be avoided if unnecessary) 🤔

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.

2 participants