提交 a9cd7f49 编写于 作者: M Marius Ungureanu 提交者: Marius Ungureanu

[Perf] Pre-allocate array builder sizes for loading PE members

上级 bb5d3736
......@@ -627,7 +627,7 @@ private IEnumerable<TypeDefToNamespace> GetTypeDefsOrThrow(bool topLevelOnly)
GetTypeNamespaceNamesOrThrow(namespaces);
GetForwardedTypeNamespaceNamesOrThrow(namespaces);
var result = new ArrayBuilder<IGrouping<string, TypeDefinitionHandle>>();
var result = new ArrayBuilder<IGrouping<string, TypeDefinitionHandle>>(namespaces.Count);
foreach (var pair in namespaces)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册