-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Reduce size of Expr
struct
#16199
New issue
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
Comments
I think this is a good first issue because
|
take |
Thanks @hendrikmakait ! |
I am surprised by the magnitude of the performance uptick by essentially moving something from the stack to the heap. |
My theory is that the performance difference is not the move to the heap but the fact that then all the places that make |
🤔 |
Is your feature request related to a problem or challenge?
For unrelated reasons, I reduced the size of
Expr
from272
to112
bytes in this PR:Expr
struct #14366It turns out this change resulted in a a pretty significant (10-20% faster) improvement in planning time #14366 (comment):
Describe the solution you'd like
I would like to make a new PR that reduces the size of
Expr
Describe alternatives you've considered
I suggest
Expr::WindowFunction(WindowFunction
) -->Expr::WindowFunction(Box<WindowFunction>)
as described on Reduce size ofExpr
struct #14366Expr
size to ensure we don't get a regression againAdditional context
I recommend:
Expr
struct #14366Expr
struct #14366The text was updated successfully, but these errors were encountered: