RE: .net 2003 vs vc6 performance

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

Sorry, by hot spot I meant areas of code that are CPU intensive or not
performing as expected. You could use a profiler to identify these areas.
Slow I/O would affect both C++ and .NET so you may want to look at making
async I/O calls. Creating multiple threads and making async calls is
typically a lot easier from a managed application than from native C++.
If calls to external resources are taking a while to return, for example
database calls you could consider caching data to reduce the number of
outbound calls.
As far as some of the loops that you suspect may be CPU intensive you could
write prototype apps in both .NET and C++ using those loops and try and
compare the time taken to execute to get an idea of whether or not C++ will
provide any perf benefits.

Honestly the way I would approach this is to find out what specific areas
of your application need to be faster. Then try and identify the code that
is causing the high cpu or bottleneck for the specific area that needs to
be optimmized. Then break down that code into smaller prototypes of VC++
and .NET and compare. Also after you identify the problem code see if you
can find a way to optimize the code in either .NET or C++. Sorry I know
that is pretty general but that is the approach I would take. Also take a
look at http://msdn2.microsoft.com/en-us/library/ms173196.aspx to ensure
you are following perf best practices for .NET


HTH,

Dan

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation.
All rights reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Please reply to the newsgroups only.

.



Relevant Pages

  • Re: which is faster, php or javascript?
    ... what those for loops do on your system? ... do in PHP because languages can't possibly be compared! ... Of course you can compare code and what it's supposed to do, ... As said in another post - try the same code in different PHP ...
    (comp.lang.php)
  • Re: COMPARE HLL/ASM
    ... so RDTSC seems to be the only choice. ... million loops each. ... Real time is hard to compare on different machines/OS ... ... static inline uint_fast64_t hstoq(const char *restrict hs, int nch) { ...
    (alt.lang.asm)
  • Re: which is faster, php or javascript?
    ... thing in those languages that they do in PHP because languages can't ... Of course these loops do the same on the level of the ... Of course you can compare code and what it's supposed to do, ...
    (comp.lang.php)
  • Numerics: Visual C++ vs. g++
    ... with the goal to see how the compiler optimizes the loops. ... make –f compare ... compiles and runs tests with GCC and Visual C++. ...
    (sci.math.num-analysis)
  • Re: circles
    ... of tongue-in-cheek self-rightousness. ... Alas. ... and compare the time of 100 loops of your code ...
    (comp.sys.apple2.programmer)