in reply to ydecode - A better, faster yEnc decoder.

very nice. i played around with the same script for a while before discovering your module, but your version is much better. you can get a small speed increase (~20% or so) by generating an array mapping the transformation instead of computing it every time through the loop. before your while loop, add:
my @ymap = map { ($_-42+256)%256 } (0..255);
then replace:
179: push @uline, ($bytes[$i]-42+256)%256;
with:
push @uline, $ymap[$bytes[$i]];

Replies are listed 'Best First'.
Re: Re: ydecode - A better, faster yEnc decoder.
by perldoc (Scribe) on Nov 05, 2002 at 20:57 UTC
    Thanks. Integrated this change into v1.3 (see above).
      hi could you accept variables too and not handles only ? My program have the data on memory, I would not like to put it on a file before lauching the yenc decode thank you :)