aboutsummaryrefslogtreecommitdiff
path: root/dev/run-tests.py
diff options
context:
space:
mode:
authorzsxwing <zsxwing@gmail.com>2015-06-30 00:46:55 +0900
committerKousuke Saruta <sarutak@oss.nttdata.co.jp>2015-06-30 00:46:55 +0900
commit630bd5fd80193ab6dc6ad0e7bcc13ee0dadabd38 (patch)
treec7f1c130c950b885f027fe62329ebf6160fc4058 /dev/run-tests.py
parent660c6cec75dc165cf5d62cdc1b0951bdb93df365 (diff)
downloadspark-630bd5fd80193ab6dc6ad0e7bcc13ee0dadabd38.tar.gz
spark-630bd5fd80193ab6dc6ad0e7bcc13ee0dadabd38.tar.bz2
spark-630bd5fd80193ab6dc6ad0e7bcc13ee0dadabd38.zip
[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. ![screen shot 2015-06-29 at 6 44 04 pm](https://cloud.githubusercontent.com/assets/1000778/8406644/eb55ed18-1e90-11e5-9ad5-50d27ad1dff1.png) After this patch, it reduces to about 17 seconds. ![screen shot 2015-06-29 at 6 47 34 pm](https://cloud.githubusercontent.com/assets/1000778/8406665/087003ca-1e91-11e5-80a8-3485aa9adafa.png) One disadvantage is that the generated JS codes become hard to read. Author: zsxwing <zsxwing@gmail.com> Closes #7082 from zsxwing/js-string and squashes the following commits: b29231d [zsxwing] Avoid massive concating strings in Javascript
Diffstat (limited to 'dev/run-tests.py')
0 files changed, 0 insertions, 0 deletions