dotnet / dotnet/linker

Lazy loading follow-up items

Open
#1,708 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

With support for lazy loading of assemblies, we still unfortunately need to scan all referenced assemblies for a few reasons. We should add the following perf optimizations:
- [ ] Avoid resolving all references for '*' in attribute XML (used in corelib, and allowed in command-line XML)
- [ ] We should also avoid an extra lookup in the attribute cache when an assembly has no embedded XML (see https://github.com/mono/linker/pull/1666#discussion_r552239646) - or, change it to a two-level cache (by assembly and attribute provider).
- [ ] Avoid resolving all references when searching for unqualified type names
- In some cases we may be able to match the GetType behavior which looks in the calling assembly and corelib only.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.