{"action":"opened","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3127","labels_url":"https://api.github.com/repos/select2/select2/issues/3127/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3127/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3127/events","html_url":"https://github.com/select2/select2/issues/3127","id":60488971,"number":3127,"title":"Bad performance with a list of 950 items","user":{"login":"marcgise","id":4680243,"avatar_url":"https://avatars.githubusercontent.com/u/4680243?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgise","html_url":"https://github.com/marcgise","followers_url":"https://api.github.com/users/marcgise/followers","following_url":"https://api.github.com/users/marcgise/following{/other_user}","gists_url":"https://api.github.com/users/marcgise/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgise/subscriptions","organizations_url":"https://api.github.com/users/marcgise/orgs","repos_url":"https://api.github.com/users/marcgise/repos","events_url":"https://api.github.com/users/marcgise/events{/privacy}","received_events_url":"https://api.github.com/users/marcgise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T12:01:50Z","updated_at":"2015-03-10T12:01:50Z","closed_at":null,"body":"Hi,\r\n\r\nI read something about the bad performance of Select2 component with a large list of items (950 in my case), but I don't found any solution.\r\n\r\nAs far as I get to know, the problem is in the initSelection method, when loading all the items. When calling callback function, Select2 component executes updateSelection() method (line 3303), that ends with calling an addSelectedChoice() method (line 2973), then formatSelection() method (line 3066) and finally the text() method (line 3443).\r\n\r\nEvery item go over this large road, and it consumes a lot of seconds. In my case, it takes about 45 or 50 seconds to load all the items.\r\n\r\nI'm using Chrome in Windows.\r\n\r\nIs there any solution?\r\n\r\nThanks,\r\nMarc"}}