From 4879bb7f44b26e86e5cd7bff4cf594311aab1143 Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 3 Apr 2024 11:09:04 +0800 Subject: [PATCH] =?UTF-8?q?[opt]=20LoadModule=E4=B8=AD=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=20mod.EnableTypeDefFindCache=20=3D=20true=EF=BC=8C=E6=95=B0?= =?UTF-8?q?=E5=80=8D=E6=8F=90=E5=8D=87=E4=BA=86=E8=AE=A1=E7=AE=97=E6=A1=A5?= =?UTF-8?q?=E6=8E=A5=E5=87=BD=E6=95=B0=E7=9A=84=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/Meta/AssemblyCacheBase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Editor/Meta/AssemblyCacheBase.cs b/Editor/Meta/AssemblyCacheBase.cs index 1816f12..c1f51a0 100644 --- a/Editor/Meta/AssemblyCacheBase.cs +++ b/Editor/Meta/AssemblyCacheBase.cs @@ -91,6 +91,7 @@ namespace HybridCLR.Editor.Meta { //Debug.Log($"do load module:{dllPath}"); ModuleDefMD mod = ModuleDefMD.Load(File.ReadAllBytes(dllPath), _modCtx); + mod.EnableTypeDefFindCache = true; _asmResolver.AddToCache(mod); _loadedModulesIncludeNetstandard.Add(mod); return mod;