{"action":"created","issue":{"url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/issues/245","labels_url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/issues/245/comments","events_url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/issues/245/events","html_url":"https://github.com/ManifestWebDesign/angular-gridster/pull/245","id":63256207,"number":245,"title":"Performance improvement for big grids (added \"sparse\" flag)","user":{"login":"Malczewski","id":3999391,"avatar_url":"https://avatars.githubusercontent.com/u/3999391?v=3","gravatar_id":"","url":"https://api.github.com/users/Malczewski","html_url":"https://github.com/Malczewski","followers_url":"https://api.github.com/users/Malczewski/followers","following_url":"https://api.github.com/users/Malczewski/following{/other_user}","gists_url":"https://api.github.com/users/Malczewski/gists{/gist_id}","starred_url":"https://api.github.com/users/Malczewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malczewski/subscriptions","organizations_url":"https://api.github.com/users/Malczewski/orgs","repos_url":"https://api.github.com/users/Malczewski/repos","events_url":"https://api.github.com/users/Malczewski/events{/privacy}","received_events_url":"https://api.github.com/users/Malczewski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-03-20T16:12:13Z","updated_at":"2015-07-30T13:37:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/pulls/245","html_url":"https://github.com/ManifestWebDesign/angular-gridster/pull/245","diff_url":"https://github.com/ManifestWebDesign/angular-gridster/pull/245.diff","patch_url":"https://github.com/ManifestWebDesign/angular-gridster/pull/245.patch"},"body":"Gridster becomes very laggy, when number of rows and columns is big\r\n(e.g. 24x100, 24 columns are required for precise resizing). With\r\n\"sparse\" option enabled, it won't check all cells one by one, and will\r\njust go through all existing items.\r\nIn my case, there was a grid with 20-25 items, size - 24x100 (default\r\nsize was 12w x 6h, i.e. 2 \"columns\"). Item dragging from left column to\r\nright caused browser freezing for several seconds. With \"sparse:true\" it\r\nisn't noticeable.\r\nSecond commit adds \"item\" into callbacks, because itemOptions contains mappings instead of numbers, when mapping object is used."},"comment":{"url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/issues/comments/126326931","html_url":"https://github.com/ManifestWebDesign/angular-gridster/pull/245#issuecomment-126326931","issue_url":"https://api.github.com/repos/ManifestWebDesign/angular-gridster/issues/245","id":126326931,"user":{"login":"achauve","id":296285,"avatar_url":"https://avatars.githubusercontent.com/u/296285?v=3","gravatar_id":"","url":"https://api.github.com/users/achauve","html_url":"https://github.com/achauve","followers_url":"https://api.github.com/users/achauve/followers","following_url":"https://api.github.com/users/achauve/following{/other_user}","gists_url":"https://api.github.com/users/achauve/gists{/gist_id}","starred_url":"https://api.github.com/users/achauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achauve/subscriptions","organizations_url":"https://api.github.com/users/achauve/orgs","repos_url":"https://api.github.com/users/achauve/repos","events_url":"https://api.github.com/users/achauve/events{/privacy}","received_events_url":"https://api.github.com/users/achauve/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T13:37:43Z","updated_at":"2015-07-30T13:37:43Z","body":"+1"}}