Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Scala achieve good performance on Android? (June 2011)

I'm very new to scala and find many of its ideas very attractive. I've just discovered the scala for android project and I'm wondering if it could be expected to run well or perhaps even better than java?

Could it even be expected do some things better than java even if the processors are mostly single core in-order execution types at the moment?

If anyone has any example or experiences to share then please do!

like image 603
barrymac Avatar asked Jun 02 '11 13:06

barrymac


2 Answers

The only "lag" would be the size of the apk, but if you use something like ProGuard it would represent only around 15k/25k more, nothing significant at all. As of performance, for what i've seen is the same. I mean, it is not worse (as happens with Clojure, being dynamically typed), but i think it's the same as Java.

like image 150
ferostar Avatar answered Oct 21 '22 07:10

ferostar


Yes, it does. But to keep the package size down, use Proguard.

If you use SBT, there is already some plugin which automates the whole process.

like image 42
soc Avatar answered Oct 21 '22 08:10

soc