comp.lang.ada
 help / color / mirror / Atom feed
From: BrianG <briang000@gmail.com>
Subject: Re: Child vs nested package : efficiency matter
Date: Sat, 29 May 2010 21:17:51 -0400
Date: 2010-05-29T21:17:51-04:00	[thread overview]
Message-ID: <htsean$83a$1@news.eternal-september.org> (raw)
In-Reply-To: <op.vdgww3flxmjfy8@garhos>

Yannick Duchï¿œne (Hibou57) wrote:
> Hillo,
> 
> 
> For some reasons, I've turned some nested package -- packages nested in 
> the body of package -- into a set of child packages instead.
> 
> I've noticed the application's execution time is now an average of 125% 
> of that of the old implementation.
> 
> The implementation did not changed otherwise and is still the same.
> 
> What can make invokation of subprograms slower when the subprograms are 
> in a child package rather than in a nested package ?
> 
> Note: this is with optimization enabled -- with -O -- and both old and 
> new implementation was compiled with the same options.
> 
> I can't explain that and can't imagine a reason why. That's a mystery to 
> me.
Presuming you're using GNAT (a guess based on your previous posts), 
could using -gnatN (as opposed to -gnatn) help?

--Bg



  reply	other threads:[~2010-05-30  1:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-29 12:56 Child vs nested package : efficiency matter Yannick Duchêne (Hibou57)
2010-05-30  1:17 ` BrianG [this message]
2010-06-01 15:03 ` Adam Beneschan
2010-06-01 15:34   ` Yannick Duchêne (Hibou57)
2010-06-01 15:38     ` Adam Beneschan
2010-06-01 19:04     ` Simon Wright
2010-06-01 19:11       ` Yannick Duchêne (Hibou57)
2010-06-02 11:11         ` -gnatN breakage was: " Alex R. Mosteo
2010-06-02 14:39           ` Vadim Godunko
2010-06-02 16:45             ` Georg Bauhaus
2010-06-02 16:50               ` Yannick Duchêne (Hibou57)
2010-06-02 20:35               ` Vadim Godunko
2010-06-01 18:35 ` Adam Beneschan
2010-06-01 19:09   ` Yannick Duchêne (Hibou57)
2010-06-01 19:44     ` Adam Beneschan
2010-06-01 19:56       ` Yannick Duchêne (Hibou57)
2010-06-02  1:38     ` BrianG
replies disabled

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