Skip to content

Conversation

@TimothyMakkison
Copy link
Contributor

Uses method group to avoid allocating a new Func and closure whenever GetOrCreatePlan is called.

I'm assuming PropertyInjectionPlanBuilder.Build is extremely expensive to run hence this code? Was the thread safe caching added for safety reasons or just performance?

Before

image

After

image

@thomhurst thomhurst merged commit 29c27eb into thomhurst:main Jan 6, 2026
9 of 10 checks passed
This was referenced Jan 6, 2026
This was referenced Jan 7, 2026
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