-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Optimize dependency context memory usage #2264
Conversation
What's the previous DependencyContext size? |
~550kb |
@dotnet-bot Test CentOS7.1 x64 Debug Build Please |
@@ -12,6 +12,8 @@ namespace Microsoft.Extensions.DependencyModel | |||
{ | |||
public class DependencyContextJsonReader : IDependencyContextReader | |||
{ | |||
private readonly IDictionary<string, string> _stringPool = new Dictionary<string, string>(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@dotnet-bot test Windows_NT x86 Debug Build please |
b04e44c
to
5be3b80
Compare
5be3b80
to
bd467a7
Compare
@dotnet-bot test Windows_NT x86 Debug Build please |
@pakrym - this has conflicts. Are we still interested in taking this change? If so, can you resolve the conflicts? If not, please close. |
Are you taking preview2 changes already? |
As of last night |
I'll rebase this change then |
/cc @anurse |
|
||
public DependencyContextLoader() : this( | ||
DependencyContextPaths.Current.Application, | ||
DependencyContextPaths.Current.SharedRuntime, | ||
FileSystemWrapper.Default, | ||
new DependencyContextJsonReader()) | ||
() => new DependencyContextJsonReader()) | ||
{ | ||
} | ||
|
||
internal DependencyContextLoader( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Enable x-plat net46 build using framework reference assemblies from NuGet
DependencyContextJsonReader
inDependencyContextLoader
Brings
DependencyContext
size in ASP.NET app to ~250kb./cc @davidfowl
This change is