Re: Ada Shootout program for K-Nucleotide (patches)
- From: Georg Bauhaus <rm.dash-bauhaus@xxxxxxxxxxxxx>
- Date: Fri, 04 Sep 2009 18:29:49 +0200
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?)
.
- Follow-Ups:
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Ludovic Brenta
- Re: Ada Shootout program for K-Nucleotide (patches)
- References:
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Olivier Scalbert
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Ludovic Brenta
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Olivier Scalbert
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: sjw
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Olivier Scalbert
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Ludovic Brenta
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Olivier Scalbert
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Ludovic Brenta
- Re: Ada Shootout program for K-Nucleotide (patches)
- From: Georg Bauhaus
- Re: Ada Shootout program for K-Nucleotide (patches)
- Prev by Date: Re: Ada Shootout program for K-Nucleotide (patches)
- Next by Date: Re: Ada Shootout program for K-Nucleotide (patches)
- Previous by thread: Re: Ada Shootout program for K-Nucleotide (patches)
- Next by thread: Re: Ada Shootout program for K-Nucleotide (patches)
- Index(es):
Relevant Pages
|