{"action":"created","issue":{"url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/135","repository_url":"https://api.github.com/repos/jgwhite/ember-sortable","labels_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/135/comments","events_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/135/events","html_url":"https://github.com/jgwhite/ember-sortable/pull/135","id":216098210,"number":135,"title":"Dramatically increase performance by reducing relayout","user":{"login":"scottmessinger","id":100121,"avatar_url":"https://avatars1.githubusercontent.com/u/100121?v=3","gravatar_id":"","url":"https://api.github.com/users/scottmessinger","html_url":"https://github.com/scottmessinger","followers_url":"https://api.github.com/users/scottmessinger/followers","following_url":"https://api.github.com/users/scottmessinger/following{/other_user}","gists_url":"https://api.github.com/users/scottmessinger/gists{/gist_id}","starred_url":"https://api.github.com/users/scottmessinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottmessinger/subscriptions","organizations_url":"https://api.github.com/users/scottmessinger/orgs","repos_url":"https://api.github.com/users/scottmessinger/repos","events_url":"https://api.github.com/users/scottmessinger/events{/privacy}","received_events_url":"https://api.github.com/users/scottmessinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-22T15:10:16Z","updated_at":"2017-03-22T18:14:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jgwhite/ember-sortable/pulls/135","html_url":"https://github.com/jgwhite/ember-sortable/pull/135","diff_url":"https://github.com/jgwhite/ember-sortable/pull/135.diff","patch_url":"https://github.com/jgwhite/ember-sortable/pull/135.patch"},"body":"The combination of calling `css` and then `height` as in `node.$().css(...).height()` was causing a recalculate styles -> relayout for **each** slot. In my app, this increased performance of the `clear` function by approximately 1000x (1300ms -> 1.3ms). Granted, my app has a bit over 200 draggable elements, so the difference is more pronounced. In more normal apps, the change should still be noticeable."},"comment":{"url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/comments/288490960","html_url":"https://github.com/jgwhite/ember-sortable/pull/135#issuecomment-288490960","issue_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/135","id":288490960,"user":{"login":"scottmessinger","id":100121,"avatar_url":"https://avatars1.githubusercontent.com/u/100121?v=3","gravatar_id":"","url":"https://api.github.com/users/scottmessinger","html_url":"https://github.com/scottmessinger","followers_url":"https://api.github.com/users/scottmessinger/followers","following_url":"https://api.github.com/users/scottmessinger/following{/other_user}","gists_url":"https://api.github.com/users/scottmessinger/gists{/gist_id}","starred_url":"https://api.github.com/users/scottmessinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottmessinger/subscriptions","organizations_url":"https://api.github.com/users/scottmessinger/orgs","repos_url":"https://api.github.com/users/scottmessinger/repos","events_url":"https://api.github.com/users/scottmessinger/events{/privacy}","received_events_url":"https://api.github.com/users/scottmessinger/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T18:14:42Z","updated_at":"2017-03-22T18:14:42Z","body":"@jgwhite I wondered that, too. My other hypothesis was height was originally being returned from the function."}}
{"actor":{"display_login":"scottmessinger"}}