Re: MFC vs .NET
- From: "Leon_Amirreza" <amirreza_rahmaty@xxxxxxxxx>
- Date: Sat, 19 Aug 2006 09:53:42 +0430
I wanted to create a function in c++ that does the time critical task and
call it in a c# app
and with just one call have the task done because many calls to unmanaged
will reduce performance due to marshalling i guess!?
"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
.
- Follow-Ups:
- Re: MFC vs .NET
- From: Ajay Kalra
- Re: MFC vs .NET
- References:
- MFC vs .NET
- From: Leon_Amirreza
- Re: MFC vs .NET
- From: Joseph M . Newcomer
- MFC vs .NET
- Prev by Date: Re: How to Get the ByteLength from CString when it is Unicode
- Next by Date: Re: How to Get the ByteLength from CString when it is Unicode
- Previous by thread: Re: MFC vs .NET
- Next by thread: Re: MFC vs .NET
- Index(es):
Relevant Pages
|