{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7082","labels_url":"https://api.github.com/repos/apache/spark/issues/7082/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7082/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7082/events","html_url":"https://github.com/apache/spark/pull/7082","id":91773304,"number":7082,"title":"[SPARK-8702][WebUI]Avoid massive concating strings in Javascript","user":{"login":"zsxwing","id":1000778,"avatar_url":"https://avatars.githubusercontent.com/u/1000778?v=3","gravatar_id":"","url":"https://api.github.com/users/zsxwing","html_url":"https://github.com/zsxwing","followers_url":"https://api.github.com/users/zsxwing/followers","following_url":"https://api.github.com/users/zsxwing/following{/other_user}","gists_url":"https://api.github.com/users/zsxwing/gists{/gist_id}","starred_url":"https://api.github.com/users/zsxwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsxwing/subscriptions","organizations_url":"https://api.github.com/users/zsxwing/orgs","repos_url":"https://api.github.com/users/zsxwing/repos","events_url":"https://api.github.com/users/zsxwing/events{/privacy}","received_events_url":"https://api.github.com/users/zsxwing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-29T11:01:17Z","updated_at":"2015-06-29T13:56:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7082","html_url":"https://github.com/apache/spark/pull/7082","diff_url":"https://github.com/apache/spark/pull/7082.diff","patch_url":"https://github.com/apache/spark/pull/7082.patch"},"body":"When there are massive tasks, such as `sc.parallelize(1 to 100000, 10000).count()`, the generated JS codes have a lot of string concatenations in the stage page, nearly 40 string concatenations for one task.\r\n\r\nWe can generate the whole string for a task instead of execution string concatenations in the browser.\r\n\r\nBefore this patch, the load time of the page is about 21 seconds.\r\n![screen shot 2015-06-29 at 6 44 04 pm](https://cloud.githubusercontent.com/assets/1000778/8406644/eb55ed18-1e90-11e5-9ad5-50d27ad1dff1.png)\r\n\r\nAfter this patch, it reduces to about 17 seconds.\r\n\r\n![screen shot 2015-06-29 at 6 47 34 pm](https://cloud.githubusercontent.com/assets/1000778/8406665/087003ca-1e91-11e5-80a8-3485aa9adafa.png)\r\n\r\nOne disadvantage is that the generated JS codes become hard to read.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/116669695","html_url":"https://github.com/apache/spark/pull/7082#issuecomment-116669695","issue_url":"https://api.github.com/repos/apache/spark/issues/7082","id":116669695,"user":{"login":"sarutak","id":4736016,"avatar_url":"https://avatars.githubusercontent.com/u/4736016?v=3","gravatar_id":"","url":"https://api.github.com/users/sarutak","html_url":"https://github.com/sarutak","followers_url":"https://api.github.com/users/sarutak/followers","following_url":"https://api.github.com/users/sarutak/following{/other_user}","gists_url":"https://api.github.com/users/sarutak/gists{/gist_id}","starred_url":"https://api.github.com/users/sarutak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarutak/subscriptions","organizations_url":"https://api.github.com/users/sarutak/orgs","repos_url":"https://api.github.com/users/sarutak/repos","events_url":"https://api.github.com/users/sarutak/events{/privacy}","received_events_url":"https://api.github.com/users/sarutak/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T13:56:33Z","updated_at":"2015-06-29T13:56:33Z","body":"LGTM. After test \"#35985\"  pass, I'll merge this into `master`.\r\nThanks @zsxwing for your contribution!"}}