C# Vs Delphi..

I

Islamegy

I'm convert a Delphi program to C#.. While i have no knowledge with delphi i
must implement everything but for some reason everything working faster on
the old program than mine!! i'm working with 10,000 record database.

Is that normal that delphi work faster, or there is something wrong in the
way I'm working with database??

plz help.. this isn't acceptable in my company, I want to figure out what's
wrong??
 
E

Eddie

Islamegy said:
I'm convert a Delphi program to C#.. While i have no knowledge with delphi i
must implement everything but for some reason everything working faster on
the old program than mine!! i'm working with 10,000 record database.

Is that normal that delphi work faster, or there is something wrong in the
way I'm working with database??

plz help.. this isn't acceptable in my company, I want to figure out what's
wrong??

Are you comparing your C# application with Delphi for .Net or Delphi for
Win32? Where is the slow down? You possibly haven't given enough
information to answer your question.

I would imagine that the Delphi for .Net program should run at about the
same speed as a C# program.

Of course, it depends on what is taking up all the time - perhaps the
database driver you are using for the Delphi app. is faster than the one
you are using for C#.

Eddie
 
I

Islamegy

noo the delphi program is built on Delphi 7 connecting in SQL Server 2000,
As i know the program use ODBC Connection not ADO connection.. and in my C#
app i use Native SqlConnection and SqlDataAdapter..
 
M

Michael Moreno

In my opinion, a good delphi/C++ programmer will create an application
that will run faster than the same application written in in .Net by a
good .Net programmer.

Get sure before you do your test to compile your assemblies using ngen.
This makes a big difference on many applications.
 
W

Wiebe Tijsma

Michael said:
In my opinion, a good delphi/C++ programmer will create an application
that will run faster than the same application written in in .Net by a
good .Net programmer.

Get sure before you do your test to compile your assemblies using ngen.
This makes a big difference on many applications.

What parts are slower? Interface? Data fetching?

As far as I know delphi/ado handles datasets in a different way
(TADODBConnection at least). It's retrieving the records asynchronously,
wich is faster efficient when loading large datasets into memory, better
compared to the .NET IDataReader interface.

Windows Forms applications (.NET) are definately slower on the UI side,
but also offer more flexibility.

So I would advise you not to choose the same approach as the delphi
application has, .NET offers many new powerful features to simplify
data retrieval and manipulation.

Let me know if you need some help somewhere.

Wiebe Tijsma
http://www.e-office.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top