spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davies Liu <>
Subject Re: Scala vs Python performance differences
Date Fri, 16 Jan 2015 19:03:25 GMT
Hey Phil,

Thank you sharing this. The result didn't surprise me a lot, it's normal to do
the prototype in Python, once it get stable and you really need the performance,
then rewrite part of it in C or whole of it in another language does make sense,
it will not cause you much time.


On Fri, Jan 16, 2015 at 7:38 AM, philpearl <> wrote:
> I was interested in this as I had some Spark code in Python that was too slow
> and wanted to know whether Scala would fix it for me.  So I re-wrote my code
> in Scala.
> In my particular case the Scala version was 10 times faster.  But I think
> that is because I did an awful lot of computation in my own code rather than
> in a library like numpy. (I put a bit more detail  here
> <>
> in case you are interested)
> So there's one data point, if only for the obvious data point comparing
> computations in Scala to computations in pure Python.
> --
> View this message in context:
> Sent from the Apache Spark User List mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message