PC Review


Reply
Thread Tools Rate Thread

C# Vs Delphi..

 
 
Islamegy
Guest
Posts: n/a
 
      27th Sep 2005
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??


 
Reply With Quote
 
 
 
 
Eddie
Guest
Posts: n/a
 
      27th Sep 2005
Islamegy wrote:
> 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
 
Reply With Quote
 
Islamegy
Guest
Posts: n/a
 
      27th Sep 2005
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..


"Eddie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Islamegy wrote:
> > 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



 
Reply With Quote
 
Michael Moreno
Guest
Posts: n/a
 
      27th Sep 2005
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.

--
Michael
----
http://michael.moreno.free.fr/
http://port.cogolin.free.fr/

 
Reply With Quote
 
Wiebe Tijsma
Guest
Posts: n/a
 
      3rd Oct 2005
Michael Moreno wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From Delphi to VB Henry Microsoft VB .NET 3 14th Jun 2006 08:05 PM
Delphi 7 did it to me! :( GregBerg Microsoft Access External Data 0 9th Apr 2004 08:57 AM
VB or Delphi Me Microsoft Access 2 28th Feb 2004 11:41 PM
Using .NET dll in Delphi Tim Bird Microsoft Dot NET Framework 3 11th Feb 2004 02:03 PM
Delphi BS Windows XP Internet Explorer 10 10th Dec 2003 05:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:35 PM.