Re: MFC vs .NET
- From: "Leon_Amirreza" <amirreza_rahmaty@xxxxxxxxx>
- Date: Sat, 19 Aug 2006 09:36:22 +0430
I have created 2 versions of my app C# and c++ mfc (that uses non of .Net)
in my time critical functions i used .Net Quick sort and qsort c run tim lib
and measured the time using queryperformance function and surprisingly the
qsort is not as efficient as .Net Quick sort and that makes the performance
of my c++ app somthing near C#
if qsort would do as i expected the c++ app should perform faster
I am wondering if i measured the time incorrectly or .Net Quick sort is
faster than qsort??
i tested both application with the same set of input data and the code is
really identicall!!
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:9ni6e21geq94118tq959lmgnb5klus79tg@xxxxxxxxxx
Managed apps use MSIL. MSIL is compiled "just in time" by the "JIT
compiler" into native
code. This code is comparable in quality to moderately optimized native
code from the
C/C++ compiler. I tend to worry when people who are talking about
"efficiency" of the
"application" also deal with user interfaces and databases; in general,
the delay to get
anything INTO your address space is two or three orders of magnitude
slower than the code
that is going to process it, even if the code is really poor, and code
that interacts with
the user rarely has performance constraints. Unless you're doing massive
string
processing, image convolution or DSP algorithms, code performance is
rarely a concern. If
nothing else, do a little performance measurement on an example of what
you think is the
critically-important code and see if it really matters. Compare this time
with the time
required to perform a query (locally) or the additional time required to
deliver the
result of a query (network delays) and see if the time spent actually
matters. Without
these numbers, discussions of "efficiency" don't even make sense.
joe
On Thu, 17 Aug 2006 09:15:58 +0430, "Leon_Amirreza"
<amirreza_rahmaty@xxxxxxxxx> wrote:
if i create a managed app in vc++ .net 2005 which would happen?Joseph M. Newcomer [MVP]
1- creates a native exe or dll that uses .Net as library
2- creates a .Net Managed exe or dll exactly like what c# does
for performace consideration i need to run native to run in the kernel of
my
app but also use .Net library (like forms class ADO .NET) because of the
rich capabilities. anyway i can do it in vs 2005?
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- MFC vs .NET
- From: Leon_Amirreza
- Re: MFC vs .NET
- From: Joseph M . Newcomer
- MFC vs .NET
- Prev by Date: Re: CString + unicode
- Next by Date: Re: should variable declaration will be changed??
- Previous by thread: Re: MFC vs .NET
- Next by thread: Re: MFC vs .NET
- Index(es):
Relevant Pages
|
|