Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 28, 2016 00:47
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/ca0249183cea98931dd0f82af21ba0a2 to your computer and use it in GitHub Desktop.
Save Whateverable/ca0249183cea98931dd0f82af21ba0a2 to your computer and use it in GitHub Desktop.
bisectable6
dd my $b = Blob.new(1,2,3); dd subbuf-rw($b,2,1) = Buf.new(42); dd $b
Bisecting: 1449 revisions left to test after this (roughly 11 steps)
[eb79d73bfe0a7e88e997e2319dbcc69b2ba90774] Make for @a.kv -> $k, $v { } 4x as fast
»»»»» Testing eb79d73bfe0a7e88e997e2319dbcc69b2ba90774
»»»»» Script output:
Blob $b = Blob.new(1,2,3)
Type check failed in binding b; expected Buf but got Blob (Blob.new(1,2,3))
in block <unit> at /tmp/Y3Jk4k_Ikp line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 40a953f5d9f5c661d8cf9b043643002d348a2000
»»»»» Script output:
Blob $b = Blob.new(1,2,3)
Type check failed in binding b; expected Buf but got Blob (Blob.new(1,2,3))
in block <unit> at /tmp/Y3Jk4k_Ikp line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4cd2875d94d90a94a214b8b15208bd0ca637dff7
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Blob.new(3)
Buf $b = Buf.new(1, 2, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 5e59d2d0c79e25fa008a87494de57ef915ed45fd
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Type check failed in binding b; expected Buf but got Blob (Blob.new(1, 2, 3))
in block <unit> at /tmp/Y3Jk4k_Ikp line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b7db53a95a9acc8e6e4490b0c870777aeb2acf2d
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Type check failed in binding b; expected Buf but got Blob (Blob.new(1, 2, 3))
in block <unit> at /tmp/Y3Jk4k_Ikp line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing be7dd672e59653ba2128cc4d8f5ba97040636256
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Blob.new(3)
Buf $b = Buf.new(1, 2, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 ce3204569ad820f016b3c798261cfbeb91d28600
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Blob.new(3)
Buf $b = Buf.new(1, 2, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 4f338014ae662c790f964fbb1d6c885691c2b314
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Blob.new(3)
Buf $b = Buf.new(1, 2, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 1969a42525f69d930735009a1dbbc39f3e910888
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Blob.new(3)
Buf $b = Buf.new(1, 2, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 58c45d331513e6d03db75b229adfcb68a2224d03
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Blob.new(3)
Buf $b = Buf.new(1, 2, 42)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» 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 138441c97df2fc0603047b589e1fa71a126185f3
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Type check failed in binding b; expected Buf but got Blob (Blob.new(1, 2, 3))
in block <unit> at /tmp/Y3Jk4k_Ikp line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 08ad4b6d772eaa8d9f6ea348e0f608a23797670f
»»»»» Script output:
Blob $b = Blob.new(1, 2, 3)
Type check failed in binding b; expected Buf but got Blob (Blob.new(1, 2, 3))
in block <unit> at /tmp/Y3Jk4k_Ikp line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
08ad4b6d772eaa8d9f6ea348e0f608a23797670f is the first new commit
commit 08ad4b6d772eaa8d9f6ea348e0f608a23797670f
Author: Elizabeth Mattijsen <liz@dijkmat.nl>
Date: Sat Feb 27 00:02:44 2016 +0100
subbuf-rw only works on Buf:D
See http://irclog.perlgeek.de/perl6/2016-02-26#i_12106997
- Since we're now using a Buf only, we can use nqp::splice
- This means no longer making copies in memory
- so this should be significantly faster for bigger Bufs
:040000 040000 2919acc7c60d7bcfe0eea9558f9e5e07ba86382b b4f68fbf41f1e47a2fe5be23c94c3f3f34f63fb6 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment