简体   繁体   English

DLL大小是否重要?

[英]Does DLL size matter?

I dont think it is an issue. 我不认为这是一个问题。 Here is the question I was asked: 这是我被问到的问题:

One of my colleague asked me a question. 我的一位同事问了我一个问题。

"I want a small portion of the c# dll (probably a helper function he may ask) to be used in my project, do i need to use whole package? But seems like to be it's size is high. so will it make any issues related to performace?" “我想在我的项目中使用c#dll的一小部分(可能是他可能要求的辅助函数),我是否需要使用整个包?但似乎它的大小很高。所以它会产生任何问题与表演有关?“

But i said NO . 但我说没有 The reason for my answer was: 我的答案的原因是:

"Suppose we are building a web application contains of 200 pages and everything will be finally converted to a single dll. Do you survive a page / portion of dll for each request? No! we built as a single assembly(application) and use. The same answer applied here". “假设我们正在构建一个包含200页的Web应用程序,一切都将最终转换为单个dll。对于每个请求,您是否在dll的页面/部分中存活?不!我们构建为单个程序集(应用程序)并使用。这里适用的答案相同“。

Am i right? 我对吗? or is really making any difference? 或者真的有什么不同?

Every library packed as a component to survive for a different purpose of a different need. 每个图书馆都作为一个组件包装,以满足不同需求的不同目的。 How come a performance issue will come over? 如何解决性能问题?

Is there any article says about loading big assembly and response time? 有没有文章说过加载大装配和响应时间?

It's better to have a single large DLL than many smaller DLLs - the size of the DLL doesn't really matter. 拥有一个大型DLL比使用更小的DLL更好 - DLL的大小并不重要。 The cost of loading a large DLL is basically equal to loading a small DLL. 加载大型DLL的成本基本上等于加载一个小DLL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM