From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8147e9052e4bc0df,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.mixmin.net!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Child vs nested package : efficiency matter Date: Sat, 29 May 2010 14:56:53 +0200 Organization: Ada At Home Message-ID: NNTP-Posting-Host: MBnfDkYuJKoIyXbkYutszA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12143 Date: 2010-05-29T14:56:53+02:00 List-Id: 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.