Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 2, 2021 12:43
Show Gist options
  • Save Whateverable/59711e908c66a95a6fa5a4dff5af2f6a to your computer and use it in GitHub Desktop.
Save Whateverable/59711e908c66a95a6fa5a4dff5af2f6a to your computer and use it in GitHub Desktop.
bisectable6
my str @a = <a b c d e f g h i j>; dd @a[1,2,*]
Bisecting: 60 revisions left to test after this (roughly 6 steps)
[ee1ba1536ac885f6d40f3cffb88ced609f5b031a] Make native array.splice(offset) about 2x faster
»»»»» Testing ee1ba1536ac885f6d40f3cffb88ced609f5b031a
»»»»» Script output:
("b", "c", array[str].new("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing eac5ae1d50774e8569442b3bc7222f660ef839b2
»»»»» Script output:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing df4de34ab5b9a979cd0ce233f6971ee1f77452de
»»»»» Script output:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4264c9e5baa0934b7a4f1b7fb9be8966a5e01d41
»»»»» Script output:
("b", "c", array[str].new("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 090432bb60decd3f31e2de6533e93904dac1f1a7
»»»»» Script output:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e5b10f2bc0714f1e98b50d41a9fe6e3331038ad0
»»»»» Script output:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b12fba38dd3c0f76b57d898c76646ef87c488703
»»»»» Script output:
("b", "c", array[str].new("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 67a31600be5f42b6d7ceea28e00998143612dcf3
»»»»» Script output:
("b", "c", array[str].new("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("b", "c", ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"))
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
67a31600be5f42b6d7ceea28e00998143612dcf3 is the first new commit
commit 67a31600be5f42b6d7ceea28e00998143612dcf3
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Tue May 8 14:09:20 2018 +0200
Make [^42] slices on native arrays about 23x faster
Thanks to the new nqp::slice op, Jeremy Studer++
:040000 040000 18d111854698545ccbf173f85fcebe0d6ba3939d 58898d5644c9e3fff54ad8aee988e2b4e33d8114 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment