RE: .net 2003 vs vc6 performance
- From: DanNemesek@xxxxxxxxxxxxxxxxxxxx (Dan Nemesek)
- Date: Sat, 24 Jun 2006 00:28:09 GMT
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.
.
- Follow-Ups:
- RE: .net 2003 vs vc6 performance
- From: lordcornholio
- RE: .net 2003 vs vc6 performance
- References:
- RE: .net 2003 vs vc6 performance
- From: Dan Nemesek
- RE: .net 2003 vs vc6 performance
- Prev by Date: RE: which performance counter is used for memory limit set in machine.config
- Next by Date: RE: .net 2003 vs vc6 performance
- Previous by thread: RE: .net 2003 vs vc6 performance
- Next by thread: RE: .net 2003 vs vc6 performance
- Index(es):
Relevant Pages
|