Article View: comp.lang.pascal.delphi.misc
Article #523Re: Performance - DOS mode contra GUI .
From: Martin Harvey
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
17 lines
1664 bytes
1664 bytes
"Klaus J. Koch" wrote:
>
> 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.
3 lines of pascal should be a lot less assembler than that ... loops and
jumps are not normally expensive provided you write them in such a way
that the branch prediction algorithms in the processor get them right.
MH.
--
Martin Harvey. martin@pergolesi.demon.co.uk
http://www.pergolesi.demon.co.uk
ICQ: 37298917
Technical Details
Message-ID:
<399C88FC.410AFB28@pergolesi.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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 From: Martin Harvey <martin@pergolesi.demon.co.uk> Subject: Re: Performance - DOS mode contra GUI . Date: 2000/08/18 Message-ID: <399C88FC.410AFB28@pergolesi.demon.co.uk> X-Deja-AN: 659733125 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: pergolesi.demon.co.uk:158.152.20.186 References: <u8mm5.822$0L1.13011@news010.worldonline.dk> <399b304d$0$1695@heracles> <7k26wEf91hB@klaus.mr.he.schule.de> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 966606832 nnrp-01:2190 NO-IDENT pergolesi.demon.co.uk:158.152.20.186 MIME-Version: 1.0 Newsgroups: comp.lang.pascal.delphi.misc,alt.comp.lang.borland-delphi,borland.public.delphi.winapi