Skip to content

Commit 866de1a

Browse files
author
dse
committed
Removing unnecessary assembly load.
1 parent 5d5d19c commit 866de1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/runtime/assemblymanager.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ internal class AssemblyManager
1717
{
1818
// modified from event handlers below, potentially triggered from different .NET threads
1919
// therefore this should be a ConcurrentDictionary
20-
private static ConcurrentDictionary<string, ConcurrentDictionary<Assembly, string>> namespaces;
20+
private static ConcurrentDictionary<string, ConcurrentDictionary<Assembly, string>> namespaces = new ConcurrentDictionary<string, ConcurrentDictionary<Assembly, string>>();
2121
//private static Dictionary<string, Dictionary<string, string>> generics;
2222
private static AssemblyLoadEventHandler lhandler;
2323
private static ResolveEventHandler rhandler;
2424

2525
// updated only under GIL?
26-
private static Dictionary<string, int> probed;
26+
private static Dictionary<string, int> probed = new Dictionary<string, int>(32);
2727

2828
// modified from event handlers below, potentially triggered from different .NET threads
29-
private static AssemblyList assemblies;
29+
private static AssemblyList assemblies = new AssemblyList(16);
3030
internal static List<string> pypath;
3131

3232
private AssemblyManager()
@@ -40,10 +40,10 @@ private AssemblyManager()
4040
/// </summary>
4141
internal static void Initialize()
4242
{
43-
namespaces = new ConcurrentDictionary<string, ConcurrentDictionary<Assembly, string>>();
44-
probed = new Dictionary<string, int>(32);
43+
//namespaces = new ConcurrentDictionary<string, ConcurrentDictionary<Assembly, string>>();
44+
// probed =
4545
//generics = new Dictionary<string, Dictionary<string, string>>();
46-
assemblies = new AssemblyList(16);
46+
// assemblies =
4747
pypath = new List<string>(16);
4848

4949
AppDomain domain = AppDomain.CurrentDomain;

0 commit comments

Comments
 (0)