GitHub user zsxwing opened a pull request:
https://github.com/apache/spark/pull/7082
[SPARK-8702][WebUI]Avoid massive concating strings in Javascript
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.
We can generate the whole string for a task instead of execution string
concatenations in the browser.
Before this patch, the load time of the page is about 21 seconds.

After this patch, it reduces to about 17 seconds.

One disadvantage is that the generated JS codes become hard to read.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zsxwing/spark js-string
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7082.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #7082
----
commit b29231d5fd1b5e1ff8bcc68d8dd8706dda99ee58
Author: zsxwing <[email protected]>
Date: 2015-06-29T10:42:03Z
Avoid massive concating strings in Javascript
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]