Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 26, 2018 22:05
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 Whateverable/bf4042793422150f8d3a7689ca3af1a9 to your computer and use it in GitHub Desktop.
Save Whateverable/bf4042793422150f8d3a7689ca3af1a9 to your computer and use it in GitHub Desktop.
bisectable6
old=d0fbe7447 sub foo() { sleep 1; take 42; take 50 }; say <a b c>.hyper(:1batch).map({(gather foo)})
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[1321917d1b259b7b706b9cfc7ba1fbdd5cea55f3] Provide child process ID via Proc::Async
»»»»» Testing 1321917d1b259b7b706b9cfc7ba1fbdd5cea55f3
»»»»» Script output:
The iterator of this Seq is already in use/consumed by another Seq
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in block <unit> at /tmp/085yvVwooA line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 3468f6908ba5aaecd3b6168ba4800cde0f7dcfbb
»»»»» Script output:
The iterator of this Seq is already in use/consumed by another Seq
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in block <unit> at /tmp/085yvVwooA line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
1c4eebe52a04df88cfff92e9ab8cbc903ce4fdec is the first new commit
commit 1c4eebe52a04df88cfff92e9ab8cbc903ce4fdec
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Mon Mar 26 20:29:28 2018 +0200
Streamline .hyper.grep batch producer
This makes the producer go about 2.5% faster for something like:
say ^Inf .hyper.map( *.is-prime ).skip(99999).head
The --profile shows significantly fewer allocations.
:040000 040000 2e3cc71eb0cd443cea8e10a3219e8a95f5f33b62 02111a23f41b589bcf8d9137a08bb2f6d5883be6 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment