In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you about the performance difference between Scala2.10 and 2.9.2. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.
I have read some of the new features of Scala 2.10.0-RC3, and the most interesting thing about this version is the performance improvement. I was curious about the extent of the improvement, so I did a benchmark test. Here are the code for my two tests:
Eratosthenes screening
Def eratosthenes (toNum: Int) = {def sieveHelp (r: IndexedSeq [Int]): Stream [Int] = {if (r.isEmpty) Stream.empty else r.head #:: sieveHelp (r.tail.filterNot (_% r.head = = 0))} sieveHelp (2 +: (3 to toNum by 2))}
Sundaram screening
Def sundaram (toNum: Int) = {val n = (toNum-2) / 2 val nonPrimes = for (I
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.