Skip to content

Avoid loading assemblies unnecessarily - #1256

Merged
Andrew Arnott (AArnott) merged 1 commit into
mainfrom
dev/andarno/fixLazyLoad
Aug 20, 2025
Merged

Andrew Arnott (AArnott) merged 1 commit into
mainfrom
dev/andarno/fixLazyLoad

Conversation

@AArnott

Copy link
Copy Markdown
Member

Loading the return type and parameters of a method forces the CLR to load the assemblies that declare those types. But unless the methods are invoked, we don't need to load them. This was showing up in a perf regression test.

Loading the return type and parameters of a method forces the CLR to load the assemblies that declare those types. But unless the methods are invoked, we don't need to load them. This was showing up in a perf regression test.
@AArnott
Andrew Arnott (AArnott) merged commit 62eea1e into main Aug 20, 2025
6 checks passed
@AArnott
Andrew Arnott (AArnott) deleted the dev/andarno/fixLazyLoad branch August 20, 2025 21:11
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