aboutsummaryrefslogtreecommitdiff
path: root/sql/README.md
diff options
context:
space:
mode:
authorImran Rashid <irashid@cloudera.com>2016-09-29 15:36:40 -0400
committerAndrew Or <andrewor14@gmail.com>2016-09-29 15:36:40 -0400
commit7f779e7439127efa0e3611f7745e1c8423845198 (patch)
tree2f9b734d0a9b310c5b623d519258abfb4d850132 /sql/README.md
parent958200497affb40f05e321c2b0e252d365ae02f4 (diff)
downloadspark-7f779e7439127efa0e3611f7745e1c8423845198.tar.gz
spark-7f779e7439127efa0e3611f7745e1c8423845198.tar.bz2
spark-7f779e7439127efa0e3611f7745e1c8423845198.zip
[SPARK-17648][CORE] TaskScheduler really needs offers to be an IndexedSeq
## What changes were proposed in this pull request? The Seq[WorkerOffer] is accessed by index, so it really should be an IndexedSeq, otherwise an O(n) operation becomes O(n^2). In practice this hasn't been an issue b/c where these offers are generated, the call to `.toSeq` just happens to create an IndexedSeq anyway.I got bitten by this in performance tests I was doing, and its better for the types to be more precise so eg. a change in Scala doesn't destroy performance. ## How was this patch tested? Unit tests via jenkins. Author: Imran Rashid <irashid@cloudera.com> Closes #15221 from squito/SPARK-17648.
Diffstat (limited to 'sql/README.md')
0 files changed, 0 insertions, 0 deletions