comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Re: Why does Ada compile slower than Python?
Date: Wed, 04 Oct 2017 19:03:09 +0300
Date: 2017-10-04T19:03:09+03:00	[thread overview]
Message-ID: <or30o9$uvs$1@gioia.aioe.org> (raw)
In-Reply-To: f4727a07-dd74-49f8-ab9a-05f80b222bdd@googlegroups.com

gautier_niouzes@hotmail.com wrote:

> Fortunately, with GNAT, the slow build time is well rewarded by
> performance. I just have the following real case today at my job:
> 
> A certain number-crunching job is a big bottleneck since years. It has
> been developed as a SQL stored procedure. Then someone has made a Python
> version (program compiled into an executable). Independently I've made an
> Ada version. All three programs produce the same result.
> 
> SQL    : 12 hours run time - weeks of development work
> Python :  3 hours run time - weeks of development work
> Ada    : 27 minutes run time - 3 days of development work.
> 
> Now the "clou": most of the run time is actually spent loading data via a
> SQL select instruction. The actual number-crunching in Ada takes 24
> *seconds* in total!... Since the loading of data is a "fixed cost" (+/-
> the same whatever the implementation language) I let as an exercise to
> figure out the speedup factor of the computation side :-).

My case is not expected especially computationally intensive. Therefore the 
processing time is expected to depend mostly on compilation time (because I 
am to load software from the Web and run it in a secure sandbox).

Thus the execution time is expected to depend mostly on compilation time, 
not the time of execution itself. (However, I am not sure if this is really 
so, it will be clear when my software will run and tested with some real-
world scenaria.)

I need to take the decision whether Ada compiles fast enough to be used this 
way.

-- 
Victor Porton - http://portonvictor.org


  reply	other threads:[~2017-10-04 16:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-02 23:01 Why does Ada compile slower than Python? Victor Porton
2017-10-03  0:05 ` Leff Ivanov
2017-10-03  1:11 ` gautier_niouzes
2017-10-03 11:31   ` Brian Drummond
2017-10-03 20:14   ` Randy Brukardt
2017-10-03 21:23     ` gautier_niouzes
2017-10-03 13:07 ` bartc
2017-10-03 13:41   ` G.B.
2017-10-03 21:08 ` Victor Porton
2017-10-04 15:00   ` Simon Wright
2017-10-18  5:56   ` olivermkellogg
2017-10-18  6:38     ` Paul Rubin
2017-10-18  7:13       ` Dmitry A. Kazakov
2017-10-18  7:34         ` Björn Lundin
2017-10-18  8:02           ` Dmitry A. Kazakov
2017-10-20  6:25             ` gautier_niouzes
2017-10-04  0:21 ` Mace Ayres
2017-10-04  1:51   ` Andrew Shvets
2017-10-04  1:54 ` Andrew Shvets
2017-10-04 15:47 ` gautier_niouzes
2017-10-04 16:03   ` Victor Porton [this message]
2017-10-07 11:47     ` Blady
replies disabled

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