delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/19/17:15:14

From: gdemont AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Performance 2.7.2 -> 2.8.1
Date: Thu, 19 Oct 2000 20:51:12 GMT
Organization: Deja.com - Before you buy.
Lines: 35
Message-ID: <8snmrt$l1c$1@nnrp1.deja.com>
References: <8smgof$l4f$1 AT nnrp1 DOT deja DOT com> <971961901 DOT 585069 AT shelley DOT paradise DOT net DOT nz> <8sn0t7$1nd$1 AT nnrp1 DOT deja DOT com> <8sn2t8$q6d$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: 212.35.34.198
X-Article-Creation-Date: Thu Oct 19 20:51:12 2000 GMT
X-Http-User-Agent: Mozilla/4.5 [fr]C-CCK-MCD {dplanet-1.0} (Win95; I)
X-Http-Proxy: 1.0 x53.deja.com:80 (Squid/1.1.22) for client 212.35.34.198
X-MyDeja-Info: XMYDJUIDgdemont
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker :

> *How much* slower? It's really hard to speak about optimization
> differences if their size is not known. Is it: a percent slower?
> Fifty?  Taking 5 times as long?

No no, be reassured: a few percents.

> And what's that code doing, in the first place?

Basically, a 3D engine and a unzipper without ASM insertions.
I could annoy you with frames-per-second log files but well...
I'm not writing a very serious article in Journal of Computational
Physics about it. I was just curious.

> '-funroll-loops' hardly does you any good, on any x86 type machine. It
> increases the code size, and as soon as the amount of code being
> looped over (the 'active set') goes beyond the size of the 1st level
> Cache, you'll receive a noticeable performance degradation. Same as
> you cross other size barriers. Pentium-class machines are good enough
> at branching (and branch prediction, in particular) that unrolling
> loops doesn't gain you terribly much, anyway, before the cache
> coherency loss strikes back.

I'm well aware about the bad cache windowing when code size increase,
especially when you let the auto-inlining option on, but trust me,
in *that* case '-funroll-loops' has a positive effect (up to 10%).

Anyway, thank you.

G.


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019