Click here to Skip to main content
15,900,461 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Why is .NET such a memory hog? Pin
igor196011-Aug-03 12:43
igor196011-Aug-03 12:43 
GeneralRe: Why is .NET such a memory hog? Pin
mattiash4-Aug-03 13:26
professionalmattiash4-Aug-03 13:26 
GeneralRe: Why is .NET such a memory hog? Pin
Stephane Rodriguez.5-Aug-03 23:17
Stephane Rodriguez.5-Aug-03 23:17 
GeneralRe: Why is .NET such a memory hog? Pin
mattiash4-Aug-03 13:31
professionalmattiash4-Aug-03 13:31 
AnswerRe: Why is .NET such a memory hog? Pin
Stephane Rodriguez.2-Aug-03 23:20
Stephane Rodriguez.2-Aug-03 23:20 
GeneralRe: Why is .NET such a memory hog? Pin
leppie3-Aug-03 3:32
leppie3-Aug-03 3:32 
GeneralRe: Why is .NET such a memory hog? Pin
Stephane Rodriguez.3-Aug-03 4:18
Stephane Rodriguez.3-Aug-03 4:18 
AnswerRe: Why is .NET such a memory hog? Pin
J. Dunlap3-Aug-03 8:55
J. Dunlap3-Aug-03 8:55 
I have found that what takes alot of memory is not the classes you create, but the initial .NET CLR runtime. This means that your apps may have a large initial memory footprint, but unless you do something that normally takes a whole lot of memory, the amount of memory will not increase any faster than a C++ application beyond that.

As for the speed issues, they are because of JIT compilation. If you want to have fast startup times, run ngen.exe on each of the assemblies in your application. This creates a native image of your assembly, so it does not need to be compiled at runtime. Nish and Rama Krishna did a study on the speed of ngen'ed and non-ngen'ed C#, VB.NET, VB, ngen'ed MC++, non-ngen'ed MC++, mixed C++, etc., and they found that C# is not alot slower than C++ once it has been ngen'ed, because there is no longer the overhead of JIT compilation.


"Blessed are the peacemakers, for they shall be called sons of God." - Jesus

"You must be the change you wish to see in the world." - Mahatma Gandhi







AnswerRe: Why is .NET such a memory hog? Pin
Heath Stewart4-Aug-03 10:03
protectorHeath Stewart4-Aug-03 10:03 
GeneralInvestigating assemblies Pin
Profox Jase31-Jul-03 22:32
Profox Jase31-Jul-03 22:32 
GeneralRe: Investigating assemblies Pin
leppie1-Aug-03 21:50
leppie1-Aug-03 21:50 
GeneralRe: Investigating assemblies Pin
Profox Jase2-Aug-03 22:38
Profox Jase2-Aug-03 22:38 
General.NET control in NT 4.0 - Problem - please help! Pin
CodeFriendly31-Jul-03 10:40
CodeFriendly31-Jul-03 10:40 
GeneralDistributed .net apps framework question... Pin
Member 9631-Jul-03 10:07
Member 9631-Jul-03 10:07 
GeneralRe: Distributed .net apps framework question... Pin
apferreira31-Jul-03 10:57
apferreira31-Jul-03 10:57 
GeneralRe: Distributed .net apps framework question... Pin
Member 9631-Jul-03 11:19
Member 9631-Jul-03 11:19 
GeneralRe: Distributed .net apps framework question... Pin
apferreira31-Jul-03 11:31
apferreira31-Jul-03 11:31 
QuestionHow does IIS get result of execution of hosted objects Pin
popopo31-Jul-03 6:44
popopo31-Jul-03 6:44 
GeneralBind a window to the side of the screen Pin
heelios30-Jul-03 6:15
heelios30-Jul-03 6:15 
GeneralRe: Bind a window to the side of the screen Pin
apferreira31-Jul-03 12:23
apferreira31-Jul-03 12:23 
GeneralC# and BitBlt Pin
aw1ay29-Jul-03 21:08
aw1ay29-Jul-03 21:08 
GeneralRe: C# and BitBlt Pin
S O S3-Aug-03 4:54
S O S3-Aug-03 4:54 
GeneralRe: C# and BitBlt Pin
J. Dunlap4-Aug-03 13:33
J. Dunlap4-Aug-03 13:33 
Generalremote installation from a webserver Pin
bhatti8129-Jul-03 20:37
bhatti8129-Jul-03 20:37 
GeneralButtons on the mainmenu Pin
phimix29-Jul-03 3:19
phimix29-Jul-03 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.