🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #521

Re: Performance - DOS mode contra GUI .

#521
From: Eddy Vluggen
Date: Fri, 18 Aug 2000 23:02
28 lines
2725 bytes
>Klaus J. Koch heeft geschreven in bericht
<7k26wEf91hB@klaus.mr.he.schule.de>...
>It's not that easy. If you are using a pentium cpu, simply clock
>cycle counting won't help because certain instructions can be
>performed simultaneously. The guys at Borland who write the
>compilers know what code to generate to obtain fastest executables.
It would not help on something like an Inc() instruction. OTOH, if you have
two ways of sorting, e.g. Bubblesort and SelectionSort, it may be a nice
help. It is not a sure way to get differences between methods, but you could
use it as a cheap tool to point out the bottlenecks in your code.

>The other day I spent my time to convert 3 lines of pascal code into
>more than 50 lines of highly optimized assembler code avoiding slow
>commands as loops, jumps, calls, and pushs, and it ended up in
>taking 5 per cent _more_ cpu time than the compiler generated code.
If I'm not mistaken, then Pascal is converted to machine language. Is asm
not a one-on-one construction of machine language? The first thing I learned
about computer is that the fastest way to program is in machine language!

Now, it is assumed that Pascal is generally slower than C. And C would be
slower than asm. If your code is slower than Delphi, than this means that
the Borland Group has some good geeks stached in their basements!

>A hint that hasn't been given yet might be helpful:
How could I miss the obvious?

BTW, I don't (want to) know assembler - I want to be able to read what I've
written..
Technical Details
Message-ID: <399dc3d7$0$1701@heracles>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!supernews.com!news-xfer.siscom.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!newsgate.cistron.nl!transit.news.cuci.nl!cuci.nl!newspost.cuci.nl!not-for-mail
References: <u8mm5.822$0L1.13011@news010.worldonline.dk><399b304d$0$1695@heracles> <7k26wEf91hB@klaus.mr.he.schule.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1091e5,8b5ff9f09340286e
X-Google-Attributes: gid1091e5,public
X-Google-Thread: fd817,8b5ff9f09340286e
X-Google-Attributes: gidfd817,public
X-Google-Thread: 10baee,8b5ff9f09340286e
X-Google-Attributes: gid10baee,public
X-Google-ArrivalTime: 2000-08-18 16:19:14 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!supernews.com!news-xfer.siscom.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!newsgate.cistron.nl!transit.news.cuci.nl!cuci.nl!newspost.cuci.nl!not-for-mail
From: "Eddy Vluggen" <vluggen@cuci.nl>
Newsgroups: comp.lang.pascal.delphi.misc,alt.comp.lang.borland-delphi,borland.public.delphi.winapi
References: <u8mm5.822$0L1.13011@news010.worldonline.dk><399b304d$0$1695@heracles> <7k26wEf91hB@klaus.mr.he.schule.de>
Subject: Re: Performance - DOS mode contra GUI .
Date: Sat, 19 Aug 2000 01:02:35 +0200
Organization: Cubic Circle
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Lines: 31
Message-ID: <399dc3d7$0$1701@heracles>
NNTP-Posting-Host: 10.1.5.19
X-Trace: newspost.cuci.nl 966640599 1701 10.1.5.19