Re: start up delay?

2018-08-07 Thread ToddAndMargo
On 08/07/2018 01:39 PM, ToddAndMargo wrote: On Wed, 1 Aug 2018 at 19:15, ToddAndMargo wrote: Hi All, Is it just me or does Perl 6 take about three times as long to start up as Perl 5?  I do have a very fast machine and it takes about seven see for some of my Perl 6 stuff to get past the

Re: start up delay?

2018-08-07 Thread ToddAndMargo
On Wed, 1 Aug 2018 at 19:15, ToddAndMargo wrote: Hi All, Is it just me or does Perl 6 take about three times as long to start up as Perl 5? I do have a very fast machine and it takes about seven see for some of my Perl 6 stuff to get past the ruminating phase and start running. Any

Re: start up delay?

2018-08-06 Thread Steve Mynott
Are you using a 32 bit version of perl6? If so it has no Just in Time (JIT) compiler and will be very much slower. S On Wed, 1 Aug 2018 at 19:15, ToddAndMargo wrote: > > Hi All, > > Is it just me or does Perl 6 take about three times as long to > start up as Perl 5? I do have a very fast

Re: start up delay?

2018-08-06 Thread Patrick Spek via perl6-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 If you're writing a runnable script in Perl 6, I would recommend to *always* use a MAIN sub[1]. If you're using that, you can easily achieve the precompilation as well, with 1 line of code less. You'd have your code in lib/Your/Program/Main.pm6:

Re: start up delay?

2018-08-06 Thread Simon Proctor
So Perl6 is a lot like Python in that modules get compiled to byte code making them a lot faster to parse the second time around. If you're running a 6000 line script then a lot of time is going to be spent parsing your script every time you run it. If you instead take all your script code and

Re: start up delay?

2018-08-06 Thread ToddAndMargo
On 08/06/2018 02:07 AM, ToddAndMargo wrote: On 08/06/2018 01:02 AM, Simon Proctor wrote: Sorry I wrote my earlier email on my phone without a computer to hand. Here's a quick rundown on what I'm talking about. --stagestats gives you the breakdown on how much time is spent doing various steps

Re: start up delay?

2018-08-06 Thread ToddAndMargo
On 08/06/2018 01:02 AM, Simon Proctor wrote: Sorry I wrote my earlier email on my phone without a computer to hand. Here's a quick rundown on what I'm talking about. --stagestats gives you the breakdown on how much time is spent doing various steps (note that using time instead of date; date

Re: start up delay?

2018-08-06 Thread Simon Proctor
Sorry I wrote my earlier email on my phone without a computer to hand. Here's a quick rundown on what I'm talking about. --stagestats gives you the breakdown on how much time is spent doing various steps (note that using time instead of date; date gives you a better timing of how long something

Re: start up delay?

2018-08-06 Thread ToddAndMargo
On Sun, 5 Aug 2018, 23:45 Elizabeth Mattijsen, > wrote: > On 1 Aug 2018, at 20:14, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: > Is it just me or does Perl 6 take about three times as long to > start up as Perl 5? I do have a very fast machine and

Re: start up delay?

2018-08-06 Thread ToddAndMargo
On 08/01/2018 01:15 PM, Elizabeth Mattijsen wrote: On 1 Aug 2018, at 20:14, ToddAndMargo wrote: Is it just me or does Perl 6 take about three times as long to start up as Perl 5? I do have a very fast machine and it takes about seven see for some of my Perl 6 stuff to get past the ruminating

Re: start up delay?

2018-08-05 Thread Simon Proctor
Have you tried running with --stagestats which gives you a break down of where the time is being spent? On thing is if you are running large script files it came take a while. Moving your code into modules, which get precompiled can give a significant speed boost. On Sun, 5 Aug 2018, 23:45

Re: start up delay?

2018-08-05 Thread Elizabeth Mattijsen
> On 1 Aug 2018, at 20:14, ToddAndMargo wrote: > Is it just me or does Perl 6 take about three times as long to > start up as Perl 5? I do have a very fast machine and it takes > about seven see for some of my Perl 6 stuff to get past the > ruminating phase and start running. Seven seconds?

Re: start up delay?

2018-08-01 Thread ToddAndMargo
2018-08-01 20:14 GMT+02:00 ToddAndMargo >: Hi All, Is it just me or does Perl 6 take about three times as long to start up as Perl 5? I do have a very fast machine and it takes about seven see for some of my Perl 6 stuff to get past the

Re: start up delay?

2018-08-01 Thread ToddAndMargo
On Wed, Aug 1, 2018 at 1:14 PM ToddAndMargo wrote: Hi All, Is it just me or does Perl 6 take about three times as long to start up as Perl 5? I do have a very fast machine and it takes about seven see for some of my Perl 6 stuff to get past the ruminating phase and start running. Any

Re: start up delay?

2018-08-01 Thread Tom Browder
One thing you can do, depending on your code, is to put most of your code in subroutines, put them in a module, and 'use' it in your main script. The module gets precompiled the first time you execute the program, and the overall program should be faster after the first go. The 'zef' program

Re: start up delay?

2018-08-01 Thread Laurent Rosenfeld via perl6-users
Yes, I agree, start-up time is sometimes quite long. But sorry, I do not have a solution. Best, Laurent. 2018-08-01 20:14 GMT+02:00 ToddAndMargo : > Hi All, > > Is it just me or does Perl 6 take about three times as long to > start up as Perl 5? I do have a very fast machine and it takes >

start up delay?

2018-08-01 Thread ToddAndMargo
Hi All, Is it just me or does Perl 6 take about three times as long to start up as Perl 5? I do have a very fast machine and it takes about seven see for some of my Perl 6 stuff to get past the ruminating phase and start running. Any workaround for this, or is this just growing pains for Perl