Re: try .. finally block

From: Tomaz Koritnik (tomaz.koritnik_at_no_spam_dewesoft.si)
Date: 01/16/04


Date: Fri, 16 Jan 2004 22:47:28 +0100

Hi

    I do know how to optimize code and this was just a questione. I don't
and I would never use try..except in pixel processing example.

regards,
Tomaz

"Craig Stuntz [TeamB]" <cstuntz@nospam.please [a.k.a. vertexsoftware.com]>
wrote in message news:4007f443$1@newsgroups.borland.com...
> Tomaz Koritnik wrote:
>
> > I would like to know if putting a code inside try..finally block,
> > makes execution slower.
>
> The first rule of optimization is that you should optimize the slow
> stuff first. In other words, don't lose too much sleep over whether
> something *might* make code slower. Instead, good application design.
> Once you have an application which works and which is reasonably
> robust, then you can profile the application and see if you have a
> performance problem. If your design is good, you probably won't. If
> you do have a problem, you can spend your time on the things which
> actually cause the problem instead of everything which might cause a
> problem.
>
> -Craig
>
> --
> Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
> Delphi/InterBase Weblog : http://delphi.weblogs.com
> InterBase in Multi-tier World -- Use multiple RDMs, IB features in
> your appserver: http://delphi.weblogs.com/stories/storyReader$195



Relevant Pages

  • Re: try .. finally block
    ... Tomaz Koritnik wrote: ... > makes execution slower. ... I think the impact is about the same as if the copde between try and ... entering and exiting the block. ...
    (borland.public.delphi.language.objectpascal)
  • Re: try .. finally block
    ... Tomaz Koritnik wrote: ... > makes execution slower. ... There is a very small amout of overhead in setting up the try/except block, ... same loop outside. ...
    (borland.public.delphi.language.objectpascal)
  • Re: try .. finally block
    ... Tomaz Koritnik wrote: ... > execution slower. ... > does, any benchmarks maybee? ... the slowdown). ...
    (borland.public.delphi.language.objectpascal)
  • Fill a parallelepiped
    ... Tomaz Koritnik wrote: ... > After drawing 6 polygons, also draw lines for each edge you want to show. ... But my suggestion to draw each side was "worst case". ...
    (microsoft.public.win32.programmer.gdi)
  • try .. finally block
    ... execution slower. ... pixel processing for i.e. 1 milion pixels. ...
    (borland.public.delphi.language.objectpascal)

Loading