Re: MFC vs .NET



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?
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?

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm


.



Relevant Pages

  • Re: How much time does a query take?
    ... not only the MSDE running, but also a visualisation for a part of a ... tell our app when a fault occured und when it went away. ... the app would execute a query against the database to retrieve the ... Like I wrote in my first question, in that way there can be a query every ...
    (microsoft.public.sqlserver.msde)
  • Re: SQl Data Provider Performance Issues
    ... Can you provide a complete sample app ... selects with a single inner join perforn OK. ... When I run the query from SQL ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problem with an ADO query against SQL Server
    ... Debugging a hung app on the client side is another story... ... >>Use SQL server profiler to find out what "actually" is going on with SQL ... >>Server times out the query. ... >>> Or, was my program waiting somehow, for a response to the first query ...
    (microsoft.public.vb.database.ado)
  • Re: Convert Columns to Rows and insert into another table based on val
    ... The UNION query worked. ... FROM [ApplicationsServersGrid] ... I still get the 1s in the second column, not the app names and app ... ran in the Query Window for testing puroses, Also the Server may ...
    (microsoft.public.access.formscoding)
  • Re: Convert Columns to Rows and insert into another table based on val
    ... When I tried using the Union Query the last time using just 2 columns ... I still get the 1s in the second column, not the app names and app ... ran in the Query Window for testing puroses, Also the Server may ...  And each record would contain the servers LogicalName, ...
    (microsoft.public.access.formscoding)