| View previous topic :: View next topic |
| Author |
Message |
Liz Guest
|
Posted: Fri Dec 23, 2005 6:25 pm Post subject: Re: How could I more speed in my app ? |
|
|
Carlos wrote:
| Quote: | I would like get more speed in my application.
How could I do it ? changing Memory manager ?
Thanks in advance
|
depends a lot on what your app does how much is down to your own coding
and how much you can tweak that
Changing memory manager will help sure, but, nothing can make up for
code which dould do with optimzing
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings
|
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Fri Dec 23, 2005 6:26 pm Post subject: Re: How could I more speed in my app ? |
|
|
Carlos wrote:
| Quote: | I would like get more speed in my application.
How could I do it ? changing Memory manager ?
|
If your application is slow you really need to measure the performance
using a profiler to determine where the bottlenecks are. Sure,
changing the memory manager might help but if it did how would you know
without measuring it?
--
-Mike (TeamB)
|
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Fri Dec 23, 2005 7:13 pm Post subject: Re: How could I more speed in my app ? |
|
|
Carlos wrote:
| Quote: | I am interesed in get speed in load time.
|
One of the most common load-time performance problems in Delphi is the
use of a lot of auto-created forms. If you have a lot of such forms
you might consider creating them only as needed.
--
-Mike (TeamB)
|
|
| Back to top |
|
 |
Carlos Guest
|
Posted: Fri Dec 23, 2005 7:14 pm Post subject: How could I more speed in my app ? |
|
|
Hello,
I would like get more speed in my application.
How could I do it ? changing Memory manager ?
Thanks in advance
|
|
| Back to top |
|
 |
David J Taylor Guest
|
Posted: Fri Dec 23, 2005 7:41 pm Post subject: Re: How could I more speed in my app ? |
|
|
Carlos wrote:
| Quote: | Hello,
I would like get more speed in my application.
How could I do it ? changing Memory manager ?
Thanks in advance
|
You need to analyse where the slow parts of your application are. Disk,
memory, network, CPU? The best way is usually to redesign that part of
your application which is slowing things up. Don't know which part?
Perhaps Eric Grange's Sampling Profiler can help:
http://glscene.sourceforge.net/misc/SamplingProfiler.zip
I've found this profiler most effective - both as a rough tool (when I
discovered a routine which was much slower than expected), and for fine
tuning - improving individual lines of code.
But your brain is probably the best optimisation tool you have!
David
|
|
| Back to top |
|
 |
JEM Guest
|
Posted: Fri Dec 23, 2005 7:47 pm Post subject: Re: How could I more speed in my app ? |
|
|
| Quote: | I would like get more speed in my application.
How could I do it ?
|
Two words - intelligent design. ;-)
Seriously, the best hope you have of getting more
speed and reliability in your application is to use a
profiler and test, test, test..
|
|
| Back to top |
|
 |
Carlos Guest
|
Posted: Fri Dec 23, 2005 8:06 pm Post subject: Re: How could I more speed in my app ? |
|
|
Thank you all.
I am interesed in get speed in load time.
How could I caching the exe?
Thanks in advance
"Carlos" <ij@i.com> escribió en el mensaje
news:43ac4c50 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello,
I would like get more speed in my application.
How could I do it ? changing Memory manager ?
Thanks in advance
|
|
|
| Back to top |
|
 |
Carlos Guest
|
Posted: Fri Dec 23, 2005 9:15 pm Post subject: Re: How could I more speed in my app ? |
|
|
All my forms are created at runtime
Thank you
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> escribió en el mensaje
news:43ac5a7f$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Carlos wrote:
I am interesed in get speed in load time.
One of the most common load-time performance problems in Delphi is the
use of a lot of auto-created forms. If you have a lot of such forms
you might consider creating them only as needed.
--
-Mike (TeamB)
|
|
|
| Back to top |
|
 |
Robert Guest
|
Posted: Fri Dec 23, 2005 9:51 pm Post subject: Re: How could I more speed in my app ? |
|
|
"Carlos" <ij@i.com> wrote
| Quote: | All my forms are created at runtime
|
Don't do anything when you start the program, other than displaying the main
form (bypass all on create activities, opening files, creating forms, as
much as you can so that the program will load). Unless you are loading the
executable from a network, load time should not be too different than
starting a "no code" delphi project one that only displays form1.
Then start enabling opening procedures one at a time, until you find out
the culprit(s).
Many times, especially if you are loading a huge executable from the
network, the slowness is unavoidable. If that's the case, just design a good
looking splash form.
Robert
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Fri Dec 23, 2005 10:12 pm Post subject: Re: How could I more speed in my app ? |
|
|
Do you use the database? Maybe connection is slow or you fetch the large
recordsets from server to client.
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Carlos" <ij@i.com> wrote
| Quote: | Hello,
I would like get more speed in my application.
How could I do it ? changing Memory manager ?
Thanks in advance
|
|
|
| Back to top |
|
 |
Ivan Pastine Guest
|
Posted: Sat Dec 24, 2005 7:15 am Post subject: Re: How could I more speed in my app ? |
|
|
Lots of good advice here, but if you are using anything other than
Delphi 2006 definitely do change the memory manager. I've gotten a speed
increase of 30% by switching to FastMM4 from the d5 default. Your milage
will vary of course but that's pretty good for one line of code.
|
|
| Back to top |
|
 |
Loren Pechtel Guest
|
Posted: Sat Dec 24, 2005 6:01 pm Post subject: Re: How could I more speed in my app ? |
|
|
On Fri, 23 Dec 2005 13:47:05 -0600, "JEM" <.john.at.compnet101.com.>
wrote:
| Quote: | I would like get more speed in my application.
How could I do it ?
Two words - intelligent design. ;-)
Seriously, the best hope you have of getting more
speed and reliability in your application is to use a
profiler and test, test, test..
|
And think carefully about any algorithm that uses nested loops.
Eons ago I remember an article on speeding up a program. The problem
being worked on was the 8-queens problem. How many solutions are
there for various board sizes?
I blew away their best tuned solution by a mile by constructing a
solution that never once looked at the board. While it maintained a
copy of the board that was strictly for display purposes--the actual
algorithm worked by keeping track of which axes were already blocked.
A 2D loop was replaced with three array lookups.
|
|
| Back to top |
|
 |
JEM Guest
|
Posted: Sat Dec 24, 2005 9:17 pm Post subject: Re: How could I more speed in my app ? |
|
|
| Quote: | I would like get more speed in my application.
How could I do it ?
Two words - intelligent design. ;-)
Seriously, the best hope you have of getting more
speed and reliability in your application is to use a
profiler and test, test, test..
And think carefully about any algorithm that uses nested loops.
|
I agree completely.
Good design goes a long ways..
|
|
| Back to top |
|
 |
C.S. Guest
|
Posted: Wed Dec 28, 2005 6:00 pm Post subject: Re: How could I more speed in my app ? |
|
|
Carlos wrote:
| Quote: | Thank you all.
I am interesed in get speed in load time.
How could I caching the exe?
Thanks in advance
"Carlos" <ij@i.com> escribis en el mensaje
news:43ac4c50 (AT) newsgroups (DOT) borland.com...
Hello,
I would like get more speed in my application.
How could I do it ? changing Memory manager ?
Thanks in advance
|
You can use Hallvard Vassbotn's HVDll to use delayed
loading of DLL's: http://cc.borland.com/Item.aspx?id=15972
Identifying what to delay is not that easy, but I remember
"Preload" a utility created by Matt Pietrek to
help identify those DLL's that could be delayed;
google for it.
--
|
|
| Back to top |
|
 |
|