# New Ticket Created by  Shoichi Kaji 
# Please include the string:  [perl #131721]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131721 >


I've noticed that with recent rakudo (2017.06-172-gc76d9324a),
it takes a lot of time to call non-existing methods with try().

(You can also find the following code in
https://gist.github.com/skaji/b597ec5ecef28449527bb746ab53bd30 )

```
#!/usr/bin/env perl6
use v6;

class Foo { }

my $start = now;

for ^30 {
    try Foo.not-exists;
}

printf "Took %.3f sec\n", now - $start;
```

rakudo 2017.04 ---> 0.004 sec
```
❯ ~/env/rakudobrew/moar-2017.04/install/bin/perl6 -v
This is Rakudo version 2017.04 built on MoarVM version 2017.04
implementing Perl 6.c.
❯ ~/env/rakudobrew/moar-2017.04/install/bin/perl6 test.p6
Took 0.004 sec
```

rakudo 2017.06-172-gc76d9324a ---> 4.903 sec
```
❯ ~/env/rakudobrew/moar-nom/install/bin/perl6 -v
This is Rakudo version 2017.06-172-gc76d9324a built on MoarVM version
2017.06-43-g45b008fb
implementing Perl 6.c.
❯ ~/env/rakudobrew/moar-nom/install/bin/perl6 test.p6
Took 4.903 sec
```

Please note that:
* for ^30 { try die; } is not slow.
* ugexe pointed out that Foo.?not-exists; is still fast it seems though

Reply via email to