468,727 Members | 1,513 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,727 developers. It's quick & easy.

Memory Managment/Objects lifecycle managment

LP
Hello .NET experts

A group of develpers here are having some arguements about different ways to
write program with minimal memory footprint.
One method in buisness class creates an instance of another class and calls
its method that does database related work. This buisness class methods is
being called in a loop, so everytime it executes it creats 1 instance of
db-related object.
Another developer sugested making db-related object a class member, rather
then local to a method, and create new instance of it in class constructor.
Considering Garbage Collection in .NET will this make any difference?
What are the best practices in general to minimize memory footprint of .NET
apps ?
Thank you so much.
Nov 16 '05 #1
1 1224
hi
check this blog of Jeffrey Richter
http://wintellect.com/WEBLOGS/wintel...11/13/627.aspx
regards
Ansil
Trivandrum

"LP" wrote:
Hello .NET experts

A group of develpers here are having some arguements about different ways to
write program with minimal memory footprint.
One method in buisness class creates an instance of another class and calls
its method that does database related work. This buisness class methods is
being called in a loop, so everytime it executes it creats 1 instance of
db-related object.
Another developer sugested making db-related object a class member, rather
then local to a method, and create new instance of it in class constructor.
Considering Garbage Collection in .NET will this make any difference?
What are the best practices in general to minimize memory footprint of .NET
apps ?
Thank you so much.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ashish | last post: by
13 posts views Thread by Nikolay Petrov | last post: by
6 posts views Thread by Chris Ashley | last post: by
11 posts views Thread by Grey Alien | last post: by
2 posts views Thread by Jack Jackson | last post: by
9 posts views Thread by bryonone | last post: by
xarzu
1 post views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.