[
https://issues.apache.org/jira/browse/SPARK-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiangrui Meng resolved SPARK-1646.
----------------------------------
Resolution: Implemented
Fix Version/s: 1.0.0
PR: https://github.com/apache/spark/pull/568
> ALS micro-optimisation
> ----------------------
>
> Key: SPARK-1646
> URL: https://issues.apache.org/jira/browse/SPARK-1646
> Project: Spark
> Issue Type: Improvement
> Components: MLlib
> Reporter: Tor Myklebust
> Assignee: Tor Myklebust
> Priority: Trivial
> Fix For: 1.0.0
>
>
> Scala "for" loop bodies turn into methods and the loops themselves into
> repeated invocations of the body method. This may make Hotspot make poor
> optimisation decisions. (Xiangrui mentioned that there was a speed
> improvement from doing similar transformations elsewhere.)
> The loops on i and p in the ALS training code are prime candidates for this
> transformation, as is the "foreach" loop doing regularisation.
--
This message was sent by Atlassian JIRA
(v6.2#6252)