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

Use a zero-size type for variable-free activations #513

Merged
merged 1 commit into from Mar 20, 2022

Conversation

kortschak
Copy link
Contributor

This is a minor allocation optimisation to reduce allocs for variable-free activations as it avoids the map allocations needed for the parameter to interpreter.NewActivation and for the returned *mapActivation from that function.

Please take a look.

@TristonianJones
Copy link
Collaborator

/gcbrun

@TristonianJones TristonianJones merged commit a8e5866 into google:master Mar 20, 2022
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.

None yet

2 participants