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

core: Don't reborrow UpdateContext constantly, add a new lifetime to Activation to track the borrow #16737

Closed
wants to merge 5 commits into from

Conversation

Dinnerbone
Copy link
Contributor

@Dinnerbone Dinnerbone commented Jun 15, 2024

The diff is mostly noise from adding one more lifetime to Activation, making the signature go from Activation<'a, 'gc> to Activation<'player, 'update, 'gc>.

Should reduce stack size of making activations, and ideally a small performance boost too.

Size of AVM1 Activation (on 64-bit) goes from 616 bytes to 120
Size of AVM2 Activation (on 64-bit) goes from 760 bytes to 296

@Dinnerbone Dinnerbone changed the title avm1: Don't reborrow UpdateContext constantly, add a new lifetime to Activation to track the borrow core: Don't reborrow UpdateContext constantly, add a new lifetime to Activation to track the borrow Jun 15, 2024
@Dinnerbone
Copy link
Contributor Author

Closed in favour of #17345

@Dinnerbone Dinnerbone closed this Aug 10, 2024
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.

1 participant