Repository navigation
Remove unused NativeAOT metadata collections - #136551
Conversation
Stop collecting compiled methods and generic dictionaries that have no consumers. Preserve method-body and reflection metadata tracking. Co-authored-by: Copilot <[email protected]> Copilot-Session: d7781a32-4bd5-4bc1-98e8-78ef1eb83cac
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
Removed unnecessary null check for methodNode and ShadowConcreteMethodNode.
MichalStrehovsky
left a comment
There was a problem hiding this comment.
Good find! But the 5.6% saving is kind of hard to believe.
|
I looked at the local benchmarking that AI wrote and it seems reasonable. Sorted sets are expensive at large scale. They have to do comparisons and the number of comparisons scales with log n of the number of items in the set. So if you have millions of nodes in the set, as azure MCP does, each additional node that gets added is doing ~15 comparisons per addition. If each comparison takes around 100ns and you do 100 million comparisons, that's around 10s of CPU time, which is in the ballpark of what we're looking at. |
|
/ba-g infra failure due to permissions change |
Removed unused compiled methods and generic dictionaries that have no consumers. Preserve method-body and reflection metadata tracking.
This seems to save ~15s of compile time for azure MCP (5.6%).