We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import ibis x = ibis.literal(1) for i in range(100): x = x + 1 # if I hardcode the name, this is instantaneous # x = x.name(f"step_{i}") x
If I ctrl-c this after a few seconds, I see see eg
File ~/code/ibis/ibis/expr/operations/core.py:89, in Value.name(self) 86 @property 87 def name(self) -> str: 88 names = (arg.name for arg in self.__args__ if hasattr(arg, "name")) ---> 89 return f"{self.__class__.__name__}({', '.join(names)})" File ~/code/ibis/ibis/expr/operations/core.py:88, in <genexpr>(.0) 86 @property 87 def name(self) -> str: ---> 88 names = (arg.name for arg in self.__args__ if hasattr(arg, "name")) 89 return f"{self.__class__.__name__}({', '.join(names)})" [... skipping similar frames: <genexpr> at line 88 (97 times), Value.name at line 89 (97 times)] File ~/code/ibis/ibis/expr/operations/core.py:89, in Value.name(self) 86 @property 87 def name(self) -> str: 88 names = (arg.name for arg in self.__args__ if hasattr(arg, "name")) ---> 89 return f"{self.__class__.__name__}({', '.join(names)})" File ~/code/ibis/ibis/expr/operations/core.py:88, in <genexpr>(.0) 86 @property 87 def name(self) -> str: ---> 88 names = (arg.name for arg in self.__args__ if hasattr(arg, "name")) 89 return f"{self.__class__.__name__}({', '.join(names)})"
main 09b6ada
NA
No response
The text was updated successfully, but these errors were encountered:
Thanks!
If this is noticeably slow then it's probably recursing infinitely.
Sorry, something went wrong.
Ok, it's not infinite: reducing the number of iterations to 10 returns quickly.
name
perf(ir): avoid exponential growth on name attribute access (#8445)
7667328
Fixes #8432. In short, the pattern we are using here for accessing `name` results in exponential growth of attribute accesses.
Successfully merging a pull request may close this issue.
What happened?
If I ctrl-c this after a few seconds, I see see eg
What version of ibis are you using?
main 09b6ada
What backend(s) are you using, if any?
NA
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: