{"action":"closed","issue":{"url":"https://api.github.com/repos/rakudo/rakudo/issues/1973","repository_url":"https://api.github.com/repos/rakudo/rakudo","labels_url":"https://api.github.com/repos/rakudo/rakudo/issues/1973/labels{/name}","comments_url":"https://api.github.com/repos/rakudo/rakudo/issues/1973/comments","events_url":"https://api.github.com/repos/rakudo/rakudo/issues/1973/events","html_url":"https://github.com/rakudo/rakudo/issues/1973","id":335947102,"node_id":"MDU6SXNzdWUzMzU5NDcxMDI=","number":1973,"title":".first() is equivalent to .head(), but is 3x slower","user":{"login":"zoffixznet","id":5747918,"node_id":"MDQ6VXNlcjU3NDc5MTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5747918?v=4","gravatar_id":"","url":"https://api.github.com/users/zoffixznet","html_url":"https://github.com/zoffixznet","followers_url":"https://api.github.com/users/zoffixznet/followers","following_url":"https://api.github.com/users/zoffixznet/following{/other_user}","gists_url":"https://api.github.com/users/zoffixznet/gists{/gist_id}","starred_url":"https://api.github.com/users/zoffixznet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoffixznet/subscriptions","organizations_url":"https://api.github.com/users/zoffixznet/orgs","repos_url":"https://api.github.com/users/zoffixznet/repos","events_url":"https://api.github.com/users/zoffixznet/events{/privacy}","received_events_url":"https://api.github.com/users/zoffixznet/received_events","type":"User","site_admin":false},"labels":[{"id":731983473,"node_id":"MDU6TGFiZWw3MzE5ODM0NzM=","url":"https://api.github.com/repos/rakudo/rakudo/labels/perf","name":"perf","color":"aadcef","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-26T18:48:51Z","updated_at":"2018-06-27T09:01:28Z","closed_at":"2018-06-27T09:01:28Z","author_association":"CONTRIBUTOR","body":"Possibly an optimization opportunity exists. Tested with a 3-element list:\r\n\r\n```\r\n$ perl6 -e 'my @a := 1, 2, 3; my \\n := 300_000; { for ^n { @a.head; Nil }; say now - ENTER now };'\r\n0.8792079\r\n\r\n$ perl6 -e 'my @a := 1, 2, 3; my \\n := 300_000; { for ^n { @a.first; Nil }; say now - ENTER now };\r\n2.6586249\r\n\r\n$ perl6 -v\r\nThis is Rakudo version 2018.05-54-g148d7c5 built on MoarVM version 2018.05-57-g89dee3b\r\nimplementing Perl 6.c.\r\n```"}}
{"actor":{"display_login":"lizmat"}}