comp.lang.ada
 help / color / mirror / Atom feed
From: "John R. Strohm" <strohm@airmail.net>
Subject: Re: Speeding up Ada procedure?
Date: Thu, 27 Feb 2003 16:57:22 -0600
Date: 2003-02-27T16:57:22-06:00	[thread overview]
Message-ID: <3522D5A11CF380F0.37E228C75C332073.7227DC2878F4EA61@lp.airnews.net> (raw)
In-Reply-To: 3E5E32A2.DA8DDA1C@raytheon.com

"Mark Johnson" <mark_h_johnson@raytheon.com> wrote in message
news:3E5E32A2.DA8DDA1C@raytheon.com...
> Hmm. Have you tried measuring the performance of the routines in
> question? I have found that my "intuition" (and others) fails to find
> the real problem area more often than not. An example of some code I had
> to fix was a Jovial to Ada translator. The developer knew that symbol
> lookup needed to be fast so did a pragma (Inline) to speed it up. When I
> fed a large file (say 3000 lines) with a lot of symbols, the program ran
> really slow (over two CPU days - never finished). A profile did not find
> the problem until I removed that pragma (Inline) and then 99.999...% of
> the CPU time was in that symbol lookup routine.
>  The lookup method was a linear search of an unsorted list!
> We changed it to a hash table & the CPU time for that one file went to
> less than 5 minutes.

Just out of curiosity, where was this?  GD/Fort Worth, by any chance?






  reply	other threads:[~2003-02-27 22:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 23:26 Speeding up Ada procedure? Papandopulo
2003-02-27  0:30 ` Hyman Rosen
2003-02-27  0:39 ` tmoran
2003-02-27  3:22 ` Steve
2003-02-27  8:38 ` Gautier
2003-02-27  8:48   ` Duncan Sands
2003-02-27  8:54 ` Jean-Pierre Rosen
2003-02-27 15:45 ` Mark Johnson
2003-02-27 22:57   ` John R. Strohm [this message]
2003-02-28 14:33     ` Mark Johnson
2003-02-27 18:43 ` Alfred Hilscher
2003-02-27 22:55 ` John R. Strohm
replies disabled

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