Re: Why so slow
On 4/20/19 8:58 PM, ToddAndMargo via perl6-users wrote: Hi All, One liners are fast, but my own programs are very slow to start. I download https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6 To check it out and it also takes ten second to start. What gives? Many thanks, -T We discussed this at our San Francisco Perl Mongers meeting today: 1. Works for me: 2019-04-27 22:32:13 dpchrist@tinkywinky ~ $ cat /etc/debian_version 9.8 2019-04-27 22:32:18 dpchrist@tinkywinky ~ $ uname -a Linux tinkywinky 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux 2019-04-27 22:32:21 dpchrist@tinkywinky ~ $ ls Downloads/rakudo-pkg-Debian9_2019.03.1-01_amd64.deb Downloads/rakudo-pkg-Debian9_2019.03.1-01_amd64.deb 2019-04-27 22:32:23 dpchrist@tinkywinky ~ $ dpkg-query --list rakudo* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==---= ii rakudo-pkg 2019.03.1-01 amd64Rakudo Perl 6 runtime 2019-04-27 22:32:30 dpchrist@tinkywinky ~ $ cat sandbox/perl6/hello.p6 #!/usr/bin/env perl6 print "hello, world!\n"; 2019-04-27 22:32:37 dpchrist@tinkywinky ~ $ time sandbox/perl6/hello.p6 hello, world! real0m0.276s user0m0.332s sys 0m0.068s 2. Worked for another person with macOS. 3. 10~15 second start-up delays for another person with Debian 9 and Perl 6 built from source. top(1) showed 100+ %CPU during the start-up delays. Once inside the REPL, there were no obvious delays. I suggested that he install the official package: https://rakudo.org/files What is your operating system? What is your Perl 6? Is there a way to run Perl 6 with debugging, logging, profiling, etc., enabled, so that the user can see what Perl 6 is doing and how long it takes? David
precomp?
Hey. I’m just glad it doesn’t take a whole day for a run anymore. Like in the old days. Gene Nardi Sent from my iPhone
Re: Why so slow
>From >https://brrt-to-the-future.blogspot.com/2018/07/perl-6-on-moarvm-has-had-jit-for-few.html > PS: You might read this and be reasonably surprised that Rakudo Perl 6 is > not, after all this, very fast yet. I have a - not entirely serious - > explanation for that: > 1. All problems in computer science can be solved with a layer of indirection. > 2. Many layers of indirection make programs slow. > 3. Perl 6 solves many computer science problems for you ;-) >. In the future, we'll continue to solve those problems, just faster. Basically, even minor things like adding two numbers together, involve half a dozen or more layers of indirection. (The optimizer eliminates some of the needless layers of indirection.) On Sat, Apr 27, 2019 at 6:53 PM ToddAndMargo via perl6-users wrote: > > On 4/20/19 8:58 PM, ToddAndMargo via perl6-users wrote: > > Hi All, > > > > One liners are fast, but my own programs are very slow to start. > > > > I download > > > > https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6 > > > > To check it out and it also takes ten second to start. > > > > What gives? > > > > Many thanks, > > -T > > > For comparison purposes, I do have similar sized Perl 5 programs > with similar amounts of modules, that start almost instantly.
Re: Why so slow
On 4/20/19 8:58 PM, ToddAndMargo via perl6-users wrote: Hi All, One liners are fast, but my own programs are very slow to start. I download https://github.com/perl6/gtk-simple/blob/master/examples/05-bars.pl6 To check it out and it also takes ten second to start. What gives? Many thanks, -T For comparison purposes, I do have similar sized Perl 5 programs with similar amounts of modules, that start almost instantly.
Re: precomp?
>> >> Hi All, >> >> What exactly is the purpose of the ".precomp" >> directory? "Precompile?". >> >> Is there a way to get it to speed up the start >> of my programs? Right now anything of anything >> with any amount of size takes 10 seconds to start >> >> Many thanks, >> -T On 4/26/19 8:39 PM, Brad Gilbert wrote: Only modules get precompiled currently. If you want your code to get precompiled, put most of it into a module. On Fri, Apr 26, 2019 at 9:58 PM ToddAndMargo via perl6-users wrote: Thank you! So it is "precompile". Why in the world doe it take 10 second for my programs to start, unless they are really small?