Article View: comp.lang.pascal.delphi.misc
Article #522Re: Performance - DOS mode contra GUI .
From: Bj�rge S�ther
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
32 lines
2198 bytes
2198 bytes
"J French" <jerry@iss.u-net.com> skrev i melding news:399d037e.6994937@news.u-net.com... > > >Eddy Vluggen 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. > > Interesting : > Were you using things like :- > REP MOVSB > REP SCASB > LODSB > > Since the 486 'Noddy' Assembler (using the simplest instructions) is > significantly faster than the more complex and 'Neat' instructions. > > Maybe this is why it went slower I found out the reason it's slower, is the optimizer. It's not too hard to make it as fast as (or even beat) the non-optimized Delphi code, but optimizer's way of moving variables in and out of registers and stack handling is far beyond my assembly knowledge. The optimized code is *very* hard to read.... -- Bjoerge Saether Consultant / Developer Asker, Norway bsaether.removethis@online.no (remove the obvious)
Technical Details
Message-ID:
<O4bn5.5594$By6.92965@news1.online.no>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> <399d037e.6994937@news.u-net.com>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: "Bj�rge S�ther" <REMOVE_bsaether@THIS_online.no> Subject: Re: Performance - DOS mode contra GUI . Date: 2000/08/18 Message-ID: <O4bn5.5594$By6.92965@news1.online.no> X-Deja-AN: 659730369 References: <u8mm5.822$0L1.13011@news010.worldonline.dk> <399b304d$0$1695@heracles> <7k26wEf91hB@klaus.mr.he.schule.de> <399d037e.6994937@news.u-net.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: news-abuse@online.no X-Trace: news1.online.no 966606254 130.67.10.20 (Fri, 18 Aug 2000 15:44:14 MET DST) Organization: Telenor Online Public Access X-MSMail-Priority: Normal NNTP-Posting-Date: Fri, 18 Aug 2000 15:44:14 MET DST Newsgroups: comp.lang.pascal.delphi.misc,alt.comp.lang.borland-delphi,borland.public.delphi.winapi