From: gautier_niouzes@hotmail.com
Subject: Re: Why does Ada compile slower than Python?
Date: Wed, 4 Oct 2017 08:47:39 -0700 (PDT)
Date: 2017-10-04T08:47:39-07:00 [thread overview]
Message-ID: <f4727a07-dd74-49f8-ab9a-05f80b222bdd@googlegroups.com> (raw)
In-Reply-To: <oqugga$1j1c$1@gioia.aioe.org>
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 :-).
G.
next prev parent reply other threads:[~2017-10-04 15:47 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 [this message]
2017-10-04 16:03 ` Victor Porton
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