avatar
用DLL会快些吗?# DotNet - 窗口里的风景
j*o
1
如果把一些模块放到一个DLL中, 那么程序运行是否会占用较少的内存?
程序运行是否可能快些?
谢谢.
avatar
e*s
2
what DLL? Assemblies?
no significant impact on memory usage :)

【在 j*****o 的大作中提到】
: 如果把一些模块放到一个DLL中, 那么程序运行是否会占用较少的内存?
: 程序运行是否可能快些?
: 谢谢.

avatar
j*o
3
那在什么情况下用dll?
谢谢。

【在 e*********s 的大作中提到】
: what DLL? Assemblies?
: no significant impact on memory usage :)

avatar
st
4
to modulize program
to create service
....

【在 j*****o 的大作中提到】
: 那在什么情况下用dll?
: 谢谢。

avatar
j*o
5
OK, Thanks.
Is there a way to load modules from another file when the module
is called?

【在 st 的大作中提到】
: to modulize program
: to create service
: ....

avatar
st
6
yes, many many ways, also it depends on how your dll is created,
it could be COM/COM+ object, then you can call the object interface,
or it could be just external library... blah blah... I am no expert, only
use it superficially. :(

【在 j*****o 的大作中提到】
: OK, Thanks.
: Is there a way to load modules from another file when the module
: is called?

avatar
j*o
7
就是发现我的程序运行期间占用内存太多, 想找个办法减减肥.

【在 st 的大作中提到】
: yes, many many ways, also it depends on how your dll is created,
: it could be COM/COM+ object, then you can call the object interface,
: or it could be just external library... blah blah... I am no expert, only
: use it superficially. :(

avatar
a*y
8
There are several ways to share dlls. DotNet prefers assembly.
You can also use COM/COM+, DotNet will create a wrapper for you automatically.
You just simply add them into reference.
But none of these methods could save memory coz DotNet doesn't let you manage
memory by yourself(unless you use unsafe block). DotNet only do garbage
collection whenever it feels like to do so.

【在 j*****o 的大作中提到】
: 就是发现我的程序运行期间占用内存太多, 想找个办法减减肥.
avatar
st
9
dll isnt the way to reduce memory usage, what's your algorithm?

【在 j*****o 的大作中提到】
: 就是发现我的程序运行期间占用内存太多, 想找个办法减减肥.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。