develooper Front page | perl.perl6.users | Postings from August 2022

Ping Larry Wall: excessive compile times

Thread Next
From:
ToddAndMargo via perl6-users
Date:
August 29, 2022 15:48
Subject:
Ping Larry Wall: excessive compile times
Message ID:
99dba2bf-ec45-17d4-b070-3f61bdfe3ac7@zoho.com
Dear Larry Wall,

Sorry for writing you directly, but I know you
sometimes answer questions on this mailing list.
And those answers are uniquely easy for a beginner
to understand.

The compile times of Perl5 and Perl6 are dramatically
different.  Perl 5 is literally 100 times or more
faster than Perl6.  It is professionally embarrassing
to turn over a program to customer that takes up to
20 seconds to start.

I have reported the issue over on:

   https://github.com/perl-foundation-outreach/gsoc-2021-ideas/issues/4

 From the bug report, I compared a program I ported from
Perl 5 to Perl 6.

       $ raku -c --stagestats GetUpdates.pl6
       Stage start : 0.000
       Stage parse : 17.851
       Stage syntaxcheck: Syntax OK

       $ time perl -c GetUpdates.pl
       GetUpdates.pl syntax OK
       real 0m0.305s
       user 0m0.243s
       sys 0m0.029s


17.851 versus 0.75 seconds.   Or 238 times slower.

Since you wrote both Perl 5 and Perl 6, is there some
reason beyond my limited understanding of how these
things work as to why your Perl 5 is so much faster to
compile that your Perl 6?

And is wishing for the situation to be corrected
not a reasonable request?

Also, am I stuck with the .precomp work around, which
is not helpful when you have to run a lot of
iterations to debug things such are regex's?
17 seconds to see if I goofed a regex is killing me!

Many thanks,
-T


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About