From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: begin/end reducing memory consumption?
Date: Fri, 22 Jun 2012 13:10:12 +0200
Date: 2012-06-22T13:10:13+02:00 [thread overview]
Message-ID: <4fe45295$0$9518$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <f23f61a8c97862b4e94f337934edbdfd@remailer.paranoici.org>
On 22.06.12 11:08, Anonymous wrote:
> What I don't get is that if I comment out the above "begin/end" lines,
> then memory usage increases with No_iterations and for No_iterations = 8
> reaches about 550 MB. Including begin/end reduces memory usage to 37MB (then independent of No_iterations, as it should be).
This is mere speculation:
The block statement makes some variables "more" local
and the implementation of Vectors can perform some memory
management.
I'd try -O2 -funroll-loops [-gnatn], too, replacing -O3.
(Some oddly related information (or maybe not having something
to do with this at all) may be available if you have GCC
-fdump-tree-slp-details. I have seen some decisions reported
there to do with exceptions handling being obstacles;
that was FSF GNAT, though, GNAT GPL seemed "better", and
the issue might be gone with most recent FSF GNATs.)
next prev parent reply other threads:[~2012-06-22 11:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 9:08 begin/end reducing memory consumption? Anonymous
2012-06-22 11:10 ` Georg Bauhaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-24 13:57 Nomen Nescio
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox