为什么Grpc.Core NuGet包这么大? [英] Why is Grpc.Core NuGet package so big?

查看:263
本文介绍了为什么Grpc.Core NuGet包这么大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新的Grpc.Core NuGet程序包大150 MB.它似乎在其生命中一直稳定增长.以下是一些示例:

The latest Grpc.Core NuGet package is a hefty 150 MB. It seems to have grown steadily over its life. Here are a few examples:

  • v1.17.1(2018年12月)48.34 MB
  • v2.23.1(2019年8月)68.11 MB
  • v2.30.0(2020年6月)150.28 MB

也许这不是一对一的事情,但作为一个随机的例子,Entity Framework Core程序包为859 KB.

Maybe this is not apples-to-apples, but to pick a random example the Entity Framework Core package is 859 KB.

我很好奇这个包装中的东西使它如此之大.对于正在创建简单C#服务的人来说,也许有些东西不是完全必要的吗?

I'm curious what's in this package that makes it so darn big. Is there perhaps some stuff that is not totally essential for someone who is creating a simple C# service?

推荐答案

包含库和构建脚本的软件包的核心功能总计不到2 MB.打包的原因在于它包含用于 Linux Windows Mac OSX 的运行时文件,以及用于的本机库. iOS Android .让我们看一下软件包的内容以了解详细信息,但仅查看前两个或三个目录级别.

The core functionality of the package containing libraries and build scripts totals at less than 2 MB. What makes to package so large is that it contains runtime files for Linux, Windows and Mac OSX, as well as native libraries for iOS and Android. Let's look at the package contents for details, but only the first two or three directory levels.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆