comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: generating and compiling a very large file
Date: Fri, 13 Jul 2018 00:04:09 -0700 (PDT)
Date: 2018-07-13T00:04:09-07:00	[thread overview]
Message-ID: <ef2be4a8-1867-40b4-85e1-36826262e87d@googlegroups.com> (raw)
In-Reply-To: <pf4chp$46s$1@franka.jacob-sparre.dk>

I found a solution; divide the list of statements into subroutines. In this case, one subroutine for state.

Apparently GNAT has some strongly non-linear dependence on the number of statements in a subroutine; one subroutine with thousands of statements is significantly slower than hundreds of subroutines with the same statements, followed by hundreds of calls to those subroutines.


      reply	other threads:[~2018-07-13  7:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-03 19:14 generating and compiling a very large file Stephen Leake
2018-06-03 19:48 ` Dmitry A. Kazakov
2018-06-03 21:43 ` Shark8
2018-06-04 21:56   ` Randy Brukardt
2018-07-13  7:04     ` Stephen Leake [this message]
replies disabled

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