Skip to content

Conversation

@tehrengruber
Copy link
Contributor

So far just a spontaneous idea I tried. Tried this with the large muphys field operator where it was roughly 10% faster. Real benefit would only be there if we cache the collect_symbol_refs in the annex (which was not possible with the previous approach).

@tehrengruber tehrengruber marked this pull request as draft May 20, 2025 08:44

expr = RenameSymbols().visit(expr, name_map=name_map)

symbol_map = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just leaving a remark here, that there was #2134. Maybe it's already resolved here.

),
(
"renaming_collision",
# the `y` param of the lambda may not be renamed to `y_` as this name is already referenced
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Is this the same problem as in #2134

# Conflicts:
#	src/gt4py/next/ffront/past_to_itir.py
#	src/gt4py/next/iterator/transforms/inline_lambdas.py
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