Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ml/params: cache stringified versions of Params
repeated lookup of paramter values within ParamMaps was causing a significant (35-45%) performance hit within LogisticRegression (SPARK-13132) due to the string interpolation performed by every call to hashCode. cache the stringified representation of the Param in a private instance variable, so that the string interpolation only happens once
- Loading branch information