{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/issues/78","repository_url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl","labels_url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/issues/78/comments","events_url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/issues/78/events","html_url":"https://github.com/JuliaDynamics/DynamicalBilliards.jl/issues/78","id":310239328,"number":78,"title":"make relocate! non-allocating","user":{"login":"Datseris","id":19669089,"avatar_url":"https://avatars0.githubusercontent.com/u/19669089?v=4","gravatar_id":"","url":"https://api.github.com/users/Datseris","html_url":"https://github.com/Datseris","followers_url":"https://api.github.com/users/Datseris/followers","following_url":"https://api.github.com/users/Datseris/following{/other_user}","gists_url":"https://api.github.com/users/Datseris/gists{/gist_id}","starred_url":"https://api.github.com/users/Datseris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Datseris/subscriptions","organizations_url":"https://api.github.com/users/Datseris/orgs","repos_url":"https://api.github.com/users/Datseris/repos","events_url":"https://api.github.com/users/Datseris/events{/privacy}","received_events_url":"https://api.github.com/users/Datseris/received_events","type":"User","site_admin":false},"labels":[{"id":869599668,"url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/labels/performance","name":"performance","color":"a3ffe0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-31T13:04:27Z","updated_at":"2018-05-13T15:01:39Z","closed_at":null,"author_association":"OWNER","body":"```julia\r\ntmin, i = next_collision(p, bt)\r\n\r\n(0.388…, 2)\r\n@btime relocate!($p, $bt[i], $tmin)\r\n\r\n  59.723 ns (2 allocations: 32 bytes)\r\n```\r\nI think there is no reason for `relocate!` to allocate, besides bad programming."},"comment":{"url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/issues/comments/388633404","html_url":"https://github.com/JuliaDynamics/DynamicalBilliards.jl/issues/78#issuecomment-388633404","issue_url":"https://api.github.com/repos/JuliaDynamics/DynamicalBilliards.jl/issues/78","id":388633404,"user":{"login":"Datseris","id":19669089,"avatar_url":"https://avatars0.githubusercontent.com/u/19669089?v=4","gravatar_id":"","url":"https://api.github.com/users/Datseris","html_url":"https://github.com/Datseris","followers_url":"https://api.github.com/users/Datseris/followers","following_url":"https://api.github.com/users/Datseris/following{/other_user}","gists_url":"https://api.github.com/users/Datseris/gists{/gist_id}","starred_url":"https://api.github.com/users/Datseris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Datseris/subscriptions","organizations_url":"https://api.github.com/users/Datseris/orgs","repos_url":"https://api.github.com/users/Datseris/repos","events_url":"https://api.github.com/users/Datseris/events{/privacy}","received_events_url":"https://api.github.com/users/Datseris/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T15:01:39Z","updated_at":"2018-05-13T15:01:39Z","author_association":"OWNER","body":"@lhupe can you write here your observations on why this is allocating?"}}
{"actor":{"display_login":"Datseris"}}