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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!feeder.erje.net!news2.arglkargh.de!news.karotte.org!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 04 Sep 2009 18:22:07 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <3f9f9e21-e088-4fbe-baac-dd43fdf6b911@r38g2000yqn.googlegroups.com> <4a757b0d$0$31328$9b4e6d93@newsspool4.arcor-online.net> <4a9fc85a$0$2850$ba620e4c@news.skynet.be> <1a5e1270-6a0a-4fff-a9b4-965abe610b69@o9g2000yqj.googlegroups.com> <4a9fdd46$0$2853$ba620e4c@news.skynet.be> <4aa0afbf$0$2864$ba620e4c@news.skynet.be> <3df8815d-b65a-4f73-9015-65375dcff113@x38g2000yqb.googlegroups.com> <4aa0e963$0$2868$ba620e4c@news.skynet.be> <0709cb9b-6144-4b14-a555-97262b1fa7b7@x37g2000yqj.googlegroups.com> In-Reply-To: <0709cb9b-6144-4b14-a555-97262b1fa7b7@x37g2000yqj.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4aa13eaf$0$32666$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 04 Sep 2009 18:22:08 CEST NNTP-Posting-Host: 914da5eb.newsspool2.arcor-online.net X-Trace: DXC=M9TGiME6Ki4TQL:hoD@>T?A9EHlD;3Yc24Fo<]lROoR1^YC2XCjHcb93HA_b7fbBB3;9OJDO8_SK6NSZ1n^B98i:_<^K0bnVoN8 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8156 Date: 2009-09-04T18:22:08+02:00 List-Id: Ludovic Brenta schrieb: > 262,499,981 procedure Write > 8,251,549,172 => ???:system__secondary_stack__ss_mark (7x) > . (Nucleotide_Length : in Frequencies; > . Nucleotide_Fragment : in Fragment := > Fragments.Null_Bounded_String) > . is > > Apparently, passing unconstrained strings to procedure Write involves > allocations on the secondary stack which account for 20% of the entire > execution time. That's hot spot #1. Indeed, and this particular hot spot had been cooled down twice: Step 1 - we replaced Bounded_String with our own Bounded_String Step 2 - we replaced this new Bounded_String with plain constrained strings of suitable fixed length (using generics)