Skip to content
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

Move evaluation for expression and result. #3075

Closed
Shylock-Hg opened this issue Oct 14, 2021 · 0 comments
Closed

Move evaluation for expression and result. #3075

Shylock-Hg opened this issue Oct 14, 2021 · 0 comments
Assignees
Labels
type/feature req Type: feature request

Comments

@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Oct 14, 2021

Is your feature request related to a problem? Please describe.
Reduce the extra result data release and copy.

Describe the solution you'd like
Now we could deduce the lifetime of result(variable), so we could move the out-of-life value instead of copy and release it.
E.G. for expression $-.name + '.xxxx', we will copy $-.name and evaluate expression then release the useless variable $- at now. After this proposal, we will move $-.name and evaluate expression on the moved value, so we eliminate the copy and release cost.

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant