j*****o 发帖数: 320 | 1 如果把一些模块放到一个DLL中, 那么程序运行是否会占用较少的内存?
程序运行是否可能快些?
谢谢. |
e*********s 发帖数: 200 | 2 what DLL? Assemblies?
no significant impact on memory usage :)
【在 j*****o 的大作中提到】 : 如果把一些模块放到一个DLL中, 那么程序运行是否会占用较少的内存? : 程序运行是否可能快些? : 谢谢.
|
j*****o 发帖数: 320 | 3 那在什么情况下用dll?
谢谢。
【在 e*********s 的大作中提到】 : what DLL? Assemblies? : no significant impact on memory usage :)
|
st 发帖数: 1685 | 4 to modulize program
to create service
....
【在 j*****o 的大作中提到】 : 那在什么情况下用dll? : 谢谢。
|
j*****o 发帖数: 320 | 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 : ....
|
st 发帖数: 1685 | 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?
|
j*****o 发帖数: 320 | 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. :(
|
a**y 发帖数: 335 | 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 的大作中提到】 : 就是发现我的程序运行期间占用内存太多, 想找个办法减减肥.
|
st 发帖数: 1685 | 9 dll isnt the way to reduce memory usage, what's your algorithm?
【在 j*****o 的大作中提到】 : 就是发现我的程序运行期间占用内存太多, 想找个办法减减肥.
|
p***n 发帖数: 635 | 10 Use CLR Profiler
http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B
7A-94635BEEBDDA&displaylang=en
【在 j*****o 的大作中提到】 : 就是发现我的程序运行期间占用内存太多, 想找个办法减减肥.
|
|
|
st 发帖数: 1685 | 11 why they take profiler out of vs.net?
【在 p***n 的大作中提到】 : Use CLR Profiler : http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B : 7A-94635BEEBDDA&displaylang=en
|
p***n 发帖数: 635 | 12 i guess most of the time, a lot of developers in the real world
don't care much about application performance. and CLR profiler
is sort of half-baked as well.
http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B
【在 st 的大作中提到】 : why they take profiler out of vs.net?
|
st 发帖数: 1685 | 13 but it was in vs6.. hehe.
【在 p***n 的大作中提到】 : i guess most of the time, a lot of developers in the real world : don't care much about application performance. and CLR profiler : is sort of half-baked as well. : : http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B
|
p***n 发帖数: 635 | 14 oh really? i didn't know about that. was it by a different name?
we used to use some tools from Parasoft back in the old days
http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B
【在 st 的大作中提到】 : but it was in vs6.. hehe.
|
st 发帖数: 1685 | 15 it was in vs6 menu option some where... hehe
【在 p***n 的大作中提到】 : oh really? i didn't know about that. was it by a different name? : we used to use some tools from Parasoft back in the old days : : http://www.microsoft.com/downloads/details.aspx?FamilyId=86CE6052-D7F4-4AEB-9B
|