{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3547","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3547/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3547/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3547/events","html_url":"https://github.com/Leaflet/Leaflet/pull/3547","id":89387923,"number":3547,"title":"Simple canvas optimizations","user":{"login":"philippelatulippe","id":188527,"avatar_url":"https://avatars.githubusercontent.com/u/188527?v=3","gravatar_id":"","url":"https://api.github.com/users/philippelatulippe","html_url":"https://github.com/philippelatulippe","followers_url":"https://api.github.com/users/philippelatulippe/followers","following_url":"https://api.github.com/users/philippelatulippe/following{/other_user}","gists_url":"https://api.github.com/users/philippelatulippe/gists{/gist_id}","starred_url":"https://api.github.com/users/philippelatulippe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippelatulippe/subscriptions","organizations_url":"https://api.github.com/users/philippelatulippe/orgs","repos_url":"https://api.github.com/users/philippelatulippe/repos","events_url":"https://api.github.com/users/philippelatulippe/events{/privacy}","received_events_url":"https://api.github.com/users/philippelatulippe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/needs%20review","name":"needs review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/26","html_url":"https://github.com/Leaflet/Leaflet/milestones/1.0-beta2","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/26/labels","id":1190479,"number":26,"title":"1.0-beta2","description":"","creator":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":1,"state":"open","created_at":"2015-07-02T11:59:33Z","updated_at":"2015-07-10T15:30:50Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-06-18T20:20:19Z","updated_at":"2015-07-13T07:36:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/3547","html_url":"https://github.com/Leaflet/Leaflet/pull/3547","diff_url":"https://github.com/Leaflet/Leaflet/pull/3547.diff","patch_url":"https://github.com/Leaflet/Leaflet/pull/3547.patch"},"body":"I'm trying to use Leaflet with a large amount of polylines, and I've found a few low-hanging fruits which make things snappier when using the canvas renderer.\r\n\r\n* throttle mouseover using L.Util.throttle\r\n* don't check for hover when the map is being panned (since the mouse isn't moving in relation to the map)\r\n* only check visible layers when checking for hover (by storing unculled layers in an array and only checking these layers)\r\n\r\nThank you for reviewing. I'm new to Leaflet, so I hope this doesn't break anything that I don't know about!"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/120838494","html_url":"https://github.com/Leaflet/Leaflet/pull/3547#issuecomment-120838494","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3547","id":120838494,"user":{"login":"mourner","id":25395,"avatar_url":"https://avatars.githubusercontent.com/u/25395?v=3","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T07:36:03Z","updated_at":"2015-07-13T07:36:03Z","body":"@philippelatulippe @wpf500 bump :)"}}