develooper Front page | perl.perl6.users | Postings from July 2017

Perl 6 Speed Revelation

Thread Next
Shlomi Fish
July 22, 2017 15:22
Perl 6 Speed Revelation
Message ID:
Hi all!

Some time ago I solved this problem - -
using a relatively slow pypy3 program (see
). After gaining access to the problem's forum, I found a faster way to solve
it in PARI/GP there -
and translated it into perl 5 + bash - .
It uses which is written in
optimised C.

Now, after I translated the program to Pure Perl 6 - ,
the perl 6 version ran very slowly. I bugged the people on freenode about it
until someone there translated the shell version to use perl 6 instead of p5,
and said it performed roughly as well. This gave me an idea to try an
equivalent perl 5 version - see
and it ran at a comparable, slow, speed as the perl 6 version.

So to sum up:

1. GNU factor is really fast.

2. When it comes to factorisation, perl 5 and perl 6 are slower and run at a
comparable speed.

I apologise for the noise I caused.



Shlomi Fish
Emma Watson Factoids -

Wikipedia has a page about everything including the .


Please reply to list if it's a mailing list post - .

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About