Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 2, 2021 12:39
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/eae393eed7ebc7ec16513974e9b5bbd8 to your computer and use it in GitHub Desktop.
Save Whateverable/eae393eed7ebc7ec16513974e9b5bbd8 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[*-4 .. *-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:
array[str].new("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing eac5ae1d50774e8569442b3bc7222f660ef839b2
»»»»» Script output:
("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing df4de34ab5b9a979cd0ce233f6971ee1f77452de
»»»»» Script output:
("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4264c9e5baa0934b7a4f1b7fb9be8966a5e01d41
»»»»» Script output:
array[str].new("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 090432bb60decd3f31e2de6533e93904dac1f1a7
»»»»» Script output:
("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e5b10f2bc0714f1e98b50d41a9fe6e3331038ad0
»»»»» Script output:
("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b12fba38dd3c0f76b57d898c76646ef87c488703
»»»»» Script output:
array[str].new("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 67a31600be5f42b6d7ceea28e00998143612dcf3
»»»»» Script output:
array[str].new("g", "h", "i")
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
("g", "h", "i")
»»»»» 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