Is it related to garbage collection? It just seems odd that it performs so well in all other areas and fails miserably on memory consumption.
Link: http://benchmarksgame.alioth.debian.org/u32/scala.html
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Without addressing each case, in general, Scala is happy to create many objects, both small and large, to make your life easier. If you specifically program to have a small memory footprint, then Scala can be only slightly less compact than Java. Otherwise, if you’re trying to make the program fast and easy to code (but you don’t specifically pay attention to memory), it’ll tend to be larger.
If anyone wanted to create small-memory-footprint versions of the programs and submit them, I’m sure they’d be accepted.