From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2c57913d6b8220c1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!j9g2000vbp.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Tasking for Mandelbrot program Date: Sun, 27 Sep 2009 04:24:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4abebaf4$0$31342$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 86.154.213.155 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254050691 6058 127.0.0.1 (27 Sep 2009 11:24:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 27 Sep 2009 11:24:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j9g2000vbp.googlegroups.com; posting-host=86.154.213.155; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.0.10, Ant.com Toolbar 1.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8495 Date: 2009-09-27T04:24:51-07:00 List-Id: On Sep 27, 2:08=A0am, Georg Bauhaus wrote: [snip] > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Z2 :=3D (Z.re ** 2, Z.im ** 2); [snip] Don't know about the rest of the program but on some platforms I've found it to be much faster to replace "** 2" with a straight multiplication, e.g. "Z.re * Z.re, Z.im * Z.im". Some "**" functions actually look for the "** 2" and just use a straight multiplication - doing it explicitly removes the function call and the check. Cheers -- Martin