[Rosettacode] Growable slices
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 16 08:20:03 PDT 2014
Artur Skawina:
> Ugh. So how does it perform wrt the D version that I wrote for
> you last time? [1]
I have done a benchmark with the various version (the first 3 are
the ones on the Rosettacode site, and the #4 is yours):
lzw1: 0.39
lzw2: 0.17
lzw3: 0.21
lzw4: 0.17
I think your comment was about an older version of the first
entry, that is non meant to be fast, just short and simple.
I think the second version is enough. Do you agree?
The third version should be more efficient but for such small
files it's slower than the second.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list