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

Remove function config allocations per invocation. #732

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

calavera
Copy link
Contributor

Description of changes:

Every invocation clones the function config. This allocates memory in the heap for no reason.

This change removes those extra allocations by wrapping the config into an Arc and sharing that between invocations.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

Every invocation clones the function config. This allocates memory in the heap for no reason.

This change removes those extra allocations by wrapping the config into an Arc and sharing that between invocations.

Signed-off-by: David Calavera <david.calavera@gmail.com>
@calavera calavera merged commit 53637e7 into main Nov 20, 2023
7 checks passed
@calavera calavera deleted the config_allocation branch November 20, 2023 18:42
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.

2 participants