-
-
Save zoffixznet/c46533e1a54ba6eb242ed9b12c72f713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use nqp; | |
sub lookup { | |
my $a; | |
for ^1_000_000 { | |
$*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; $*FOO; | |
Nil; | |
} | |
say now - ENTER now; | |
} | |
{ | |
say "Regular lookup"; | |
my $*FOO = 42; | |
{ | |
my $a; | |
{ | |
my $a; | |
{ | |
my $a; | |
lookup; | |
} | |
} | |
} | |
} | |
{ | |
my $*FOO = 42; | |
await start { | |
say "In-promise lookup"; | |
{ | |
my $a; | |
{ | |
my $a; | |
{ | |
my $a; | |
lookup; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment