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-Thread: a07f3367d7,3a6a9f1d654285ba X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news2.euro.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.skynet.be!195.238.0.222.MISMATCH!newsspl501.isp.belgacom.be!tjb!not-for-mail Date: Mon, 07 Sep 2009 09:45:44 +0200 From: Olivier Scalbert User-Agent: Thunderbird 2.0.0.23 (X11/20090817) 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> <4aa13eaf$0$32666$9b4e6d93@newsspool2.arcor-online.net> <4aa1407d$0$32666$9b4e6d93@newsspool2.arcor-online.net> <335214cf-c7cb-459f-bb5b-89f589da7111@e11g2000yqo.googlegroups.com> In-Reply-To: <335214cf-c7cb-459f-bb5b-89f589da7111@e11g2000yqo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4aa4ba5b$0$2848$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 9638f89d.news.skynet.be X-Trace: 1252309595 news.skynet.be 2848 81.246.230.64:50444 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news2.google.com comp.lang.ada:8201 Date: 2009-09-07T09:45:44+02:00 List-Id: Ludovic Brenta wrote: > Georg Bauhaus wrote on comp.lang.ada: >> Georg Bauhaus schrieb: >> >>> Ludovic Brenta schrieb: >>>> 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) >> I should add that the current program spends much of its time >> in equality comparison of fragment strings, >> and then some in the hash function. >> So not only are the bounded_strings gone; >> Jonathan has also contributed a highly efficient hashing >> function and a cute string equality function. >> >> (As mentioned, to actually see the effects (of the current >> program), String_Fragments."=" should be a renaming of Equals. >> Operator subprograms seem to confuse the profiling programs, >> or am I missing some setting?) > > So I gather that Olivier was profiling an old version of the program. > Correct? > > -- > Ludovic Brenta. Ooops, sorry for that ... Today I can provide profile for the last version on: - 32 bits - Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz - gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) - 64 bits - AMD Athlon(tm) 64 Processor 3000+ - gcc version 4.3.4 (Debian 4.3.4-1) Can it help ? Olivier