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

Eliminate lambdas from Invoke calls #640

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AnsisMalins
Copy link
Contributor

This change gets rid of allocations in Invoke and InvokeNoThrow calls. Each allocation is not much, but these functions get called a lot, and it adds up.

@ClearScriptLib
Copy link
Collaborator

Hi @AnsisMalins,

Thanks for posting your PR, but, as before, your change is redundant and/or in conflict with the upcoming ClearScript 7.5, which implements a number of strategies to reduce or eliminate heap allocation. Specifically, the new version replaces nearly all capturing lambdas in the codebase with static lambdas and most heap-allocated scope objects with ref struct scopes.

Thanks again!

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.

2 participants