Re:Delphi3 from Delphi1 .. 50% slower
On Fri, 24 Sep 1999 18:58:29 GMT, be...@ix.netcom.com (bernard mahon)
waffled on about something:
Quote
>I realize, and apologize in advance for, the fact that this is an
>off-the-wall problem... BUT
>I converted an app to Delphi3 from Delphi1.
>It has 4 main forms, one of which is a crude report writer.
>I reads a table file, formats print lines and creates a print table
>file.
>There were hardly any conversion issues .. but when I run
>the new version it runs half as fast as the old (31 sec vs 15sec)
>formatting @ 1750 records.
>This is on a 233 compaq .. what is worse the new version
>takes 59sec on a toshiba laptop.
>Are there any options settings for the compiler or BDE that
>could cause this??????
>This is not a major problem but is frustrating the hell out of me.
>Thanks in advance for any assistance.
>b j mahon
>delphi rookie
I know exactly what you mean. I recently recompiled an app in D4 that
had been written in D3... Suddenly the .exe grew by over 20% in size,
although it doesn't run any slower.
Don't quite see how that can be. I could understand a D1 app growing
because of the extra overhead of the 32bit routines, but D3 and D4 are
both 32bit so surely the standard function routines shouldn't be that
different... Oh well, like they say, a program will alway require more
memory than is available to it!
As for your problem, I'm not that familiar with D1, I joined in with
Delphi quite late, at D3. But some pointers on speed.....
Variants.... Avoid like the plague... Very slow.
Use integers for numbers where possible.
D3 and 4 strings have no maximum length, so you may have code to deal
with long D1 strings you no longer need.
Hope some of this is of help,
Dodgy.