Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created June 20, 2018 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/c46533e1a54ba6eb242ed9b12c72f713 to your computer and use it in GitHub Desktop.
Save zoffixznet/c46533e1a54ba6eb242ed9b12c72f713 to your computer and use it in GitHub Desktop.
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