comp.lang.ada
 help / color / mirror / Atom feed
From: David Starner <dstarner98@aasaa.ofe.org>
Subject: Re: Ada95 speed
Date: 1999/05/17
Date: 1999-05-18T03:54:51+00:00	[thread overview]
Message-ID: <3740C7B1.4CD68529@aasaa.ofe.org> (raw)
In-Reply-To: 3740C535.7C6200A8@gte.net



"Clifford J. Nelson" wrote:
> 
> Ten years ago a Mandelbrot set computation and display on a 1200x700
> screen with eight bit color took six seconds in C on a MacIIfx.
> 
> The following computations (leaving out all the with statements that you
> need for the Mac) take ten seconds on an iMac 266 MHertz Mac OS 8.5.1
> with the CodeBuilder Ada95 GNU from Tenon. I think it should run ten
> times faster.

Was the code identical? I've had two Mandelbrot generators on the same
system, and one took hours and one took seconds to do the Mandelbrot.
Since the later was carefully and extensively tuned (cf. Fractint), I
get the impression that the comparision code may have been similarily
tuned. 

>           exit when (abs( Z)) > 2.0;

This line is probably the problem. The C code probably never did a sqrt;
most likely, the code looked like (z.i* z.i + z.r * z.r) > 4.0. Do the
same thing in Ada, and you'll probably see a huge improvement.




  reply	other threads:[~1999-05-17  0:00 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-18  0:00 Ada95 speed Clifford J. Nelson
1999-05-17  0:00 ` David Starner [this message]
1999-05-18  0:00   ` Clifford J. Nelson
1999-05-18  0:00 ` Florian Weimer
1999-05-18  0:00 ` Tucker Taft
1999-05-18  0:00   ` Clifford J. Nelson
1999-05-18  0:00 ` Larry Kilgallen
1999-05-20  0:00 ` Tom Moran
1999-05-21  0:00   ` Clifford J. Nelson
1999-05-21  0:00     ` Tom Moran
1999-05-21  0:00       ` Clifford J. Nelson
1999-05-21  0:00         ` Tom Moran
  -- strict thread matches above, loose matches on Subject: below --
1999-06-07  0:00 Robert I. Eachus
1999-06-07  0:00 ` tmoran
1999-06-06  0:00 tmoran
1999-06-06  0:00 ` Robert Dewar
1999-06-06  0:00 tmoran
1999-06-06  0:00 ` David C. Hoos, Sr.
1999-06-06  0:00   ` tmoran
1999-06-07  0:00     ` Robert Dewar
1999-06-06  0:00       ` Brian Rogoff
1999-06-06  0:00       ` David C. Hoos, Sr.
1999-06-07  0:00         ` Robert Dewar
1999-06-05  0:00 tmoran
1999-06-05  0:00 ` Al Christians
1999-06-05  0:00   ` David C. Hoos, Sr.
1999-06-05  0:00 tmoran
1999-06-05  0:00 ` Robert Dewar
1999-06-05  0:00   ` Ehud Lamm
1999-06-05  0:00     ` Clifford J. Nelson
1999-06-05  0:00     ` William Starner
1999-06-05  0:00       ` Ehud Lamm
1999-06-06  0:00     ` David Botton
1999-06-06  0:00       ` Ehud Lamm
1999-06-07  0:00         ` Robert Dewar
1999-06-07  0:00           ` Ehud Lamm
     [not found] <374182F2.B10AD449@Maths.UniNe.CH>
1999-05-18  0:00 ` Tom Moran
1999-05-18  0:00   ` Gautier
1999-05-19  0:00     ` Robert Dewar
1999-05-20  0:00       ` Clifford J. Nelson
1999-05-20  0:00         ` Tucker Taft
1999-05-20  0:00           ` Tom Moran
1999-05-20  0:00             ` Tom Moran
1999-05-21  0:00               ` Tom Moran
1999-05-31  0:00         ` James E. Hopper
1999-06-01  0:00           ` Clifford J. Nelson
1999-06-01  0:00             ` James E. Hopper
1999-06-02  0:00             ` Robert Dewar
1999-06-04  0:00               ` Clifford J. Nelson
1999-06-05  0:00                 ` Robert Dewar
1999-06-01  0:00           ` Clifford J. Nelson
1999-06-01  0:00             ` James E. Hopper
1999-06-02  0:00               ` Clifford J. Nelson
1999-06-04  0:00                 ` Clifford J. Nelson
1999-06-02  0:00             ` James E. Hopper
1999-06-02  0:00               ` Clifford J. Nelson
1999-06-02  0:00                 ` James E. Hopper
1999-06-02  0:00                   ` Clifford J. Nelson
1999-06-02  0:00                     ` John B. Matthews, M.D.
1999-06-02  0:00                       ` Clifford J. Nelson
1999-06-02  0:00                     ` Gautier
1999-06-02  0:00                       ` John B. Matthews, M.D.
1999-06-02  0:00             ` Robert Dewar
1999-06-04  0:00               ` Clifford J. Nelson
1999-06-04  0:00                 ` Ole-Hjalmar Kristensen
1999-06-04  0:00                 ` David C. Hoos, Sr.
1999-06-03  0:00           ` Robert I. Eachus
1999-05-31  0:00       ` Gautier
1999-05-19  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox