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

[GDScript] Perform update-and-assign operations in place when possible (reverted) #72056

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

resistor
Copy link
Contributor

This turns two bytecode operations into one by using the assignment destination directly as the output of the binary operator. This manifests in operations like +=.

Benchmark: https://hastebin.com/mibabadisu
Old byte code: https://hastebin.com/iboqopicaw
New byte code: https://hastebin.com/awefuneyow

This turns two bytecode operations into one by using the assignment
destination directly as the output of the binary operator. This manifests
in operations like `+=`.
@resistor
Copy link
Contributor Author

Ping

@YuriSizov YuriSizov modified the milestones: 4.x, 4.1 Mar 20, 2023
@YuriSizov YuriSizov merged commit a008a06 into godotengine:master Mar 20, 2023
@YuriSizov
Copy link
Contributor

Thanks!

In future commits I recommend not using your master branch as a base. Prefer creating feature branches, so you can work on multiple commits at once, have a clear and sync master, and avoid issues with rebasing.

@akien-mga akien-mga changed the title [GDScript] Perform update-and-assign operations in place when possible. [GDScript] Perform update-and-assign operations in place when possible (reverted) Apr 25, 2023
@akien-mga
Copy link
Member

Reverted by #75885 as it introduced regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants