develooper Front page | perl.perl6.users | Postings from September 2019

Re: anything faster than say [+] lines?

Thread Previous | Thread Next
From:
Marc Chantreux
Date:
September 28, 2019 11:38
Subject:
Re: anything faster than say [+] lines?
Message ID:
20190928113815.GA15449@prometheus.u-strasbg.fr
hello,

> should make it a bit faster, at the expense of *much* more memory
> usage, as opposed to just.

i was just reporting. perl6 isn't fast enough in this case to compare
with other dynamic langages.

> In any case, to get the same result, you could also do
> 
>     (0..10_000_00).sum.say
> 
> which would come back instantaneously, regardless of the size of the
> range.

sure but the point of the stackoverflow question was to write a unix
filter. seq 1000000 was just a simple and reproductible example.

thanks a lot everyone for helping
marc

Thread Previous | 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