Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining a prefix * operator seriously slows down parse of Perl 6 code #4429

Open
p6rt opened this issue Jul 24, 2015 · 4 comments
Open

Defining a prefix * operator seriously slows down parse of Perl 6 code #4429

p6rt opened this issue Jul 24, 2015 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 24, 2015

Migrated from rt.perl.org#125671 (status was 'open')

Searchable as RT125671$

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

From @hoelzro

See the attached file.

When I uncomment the line that defines a * prefix operator (ala pointer dereferencing in C), the runtime for the script is five times as long.

@p6rt
Copy link
Author

p6rt commented Jul 24, 2015

From @hoelzro

test.pl

@p6rt
Copy link
Author

p6rt commented Apr 9, 2017

From @dwarring

Also seeing similar in latest Rakudo​:

david@​X346​:~$ perl6 -v
This is Rakudo version 2017.03-206-g2ddfa26 built on MoarVM version 2017.03-115-ge8231a3
implementing Perl 6.c.
david@​X346​:~$ time perl6 -e'sub prefix​:<n>($) {42};'

real 0m1.336s
user 0m1.244s
sys 0m0.092s

Versus a simple sub​:

david@​X346​:~$ time perl6 -e'sub n {42}'

real 0m0.331s
user 0m0.268s
sys 0m0.060s

On Thu, 23 Jul 2015 21​:01​:55 -0700, rob@​hoelz.ro wrote​:

See the attached file.

When I uncomment the line that defines a * prefix operator (ala
pointer dereferencing in C), the runtime for the script is five times
as long.

@p6rt
Copy link
Author

p6rt commented Apr 9, 2017

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant