On 07/31/2015 07:39 AM, David Emanuel da Costa Santiago wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hello.
Thanks for your reply.
I remember that i did some performance tests and
$string = $string ."something"
had better performance than
$string .= "something"
which matched
> On Jul 31, 2015, at 4:39 AM, David Emanuel da Costa Santiago
> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
>
>
> Hello.
>
>
> Thanks for your reply.
>
>
> I remember that i did some performance tests and
>
> $string = $string ."something"
>
> had better performanc
That makes me wonder - what version of Perl are you using and on which OS?
Here's what I get:
$ perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for
darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
On Fri, Jul 31, 2015 at 12:39 PM, David Ema
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hello.
Thanks for your reply.
I remember that i did some performance tests and
$string = $string ."something"
had better performance than
$string .= "something"
which matched the results of (link to stack overflow)
http://stackoverflow.co
Dear David,
On Fri, 31 Jul 2015 02:10:49 + (UTC)
David Araujo Souza wrote:
> Hi Shiome.I'm the very, very beginner in Perl. In moment i can't help you.
> I'm iniciate study in Perl on this week.
> Sorry.
>
First of all, it’s "Shlomi" - not "Shiome". Secondly, I wasn't writing a
message t
Hi Shiome.I'm the very, very beginner in Perl. In moment i can't help you.
I'm iniciate study in Perl on this week.
Sorry.
Em Quinta-feira, 30 de Julho de 2015 18:27, Shlomi Fish
escreveu:
Hi David,
see below for my comments on your code.
On Thu, 30 Jul 2015 22:14:55 +0200
Dav
Hi David,
see below for my comments on your code.
On Thu, 30 Jul 2015 22:14:55 +0200
David Emanuel da Costa Santiago wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
>
> Hello,
>
> I'm developing a perl yenc encoder but unfortunatelly it's not having
> the performance i was expec
Hi David
It would be worth nailing down which bit is slow. I'm guessing it's the
for-loop rather than the unpack but I'd make sure of it using something
like this
https://metacpan.org/pod/Time::HiRes
If it is indeed the for-loop, I'd experiment with using regex substitution
instead of the for-lo
On 07/30/2015 04:14 PM, David Emanuel da Costa Santiago wrote:
my @YENC_CHAR_MAP = map{($_+42)%256;} (0..0x);
my $YENC_NNTP_LINESIZE=128;
sub _yenc_encode{
my ($string) = @_;
my $column = 0;
my $content = '';
my @hexString = unpack('W*',$string); #Converts binary string to hex
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hello,
I'm developing a perl yenc encoder but unfortunatelly it's not having
the performance i was expecting to have (and it's CPU heavy).
Can i get some help improving it's performance?
This is the code i have (41 lines).
Initially i though abo
10 matches
Mail list logo