Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The Java Performance Companion: How is this book different  RSS feed

 
Radha Sahoo
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations! Wish you all the best for the success of the book.

Im planning to buy some java performance  book.

How is this book different  compared to other books in this topic?

Is it written with Java 8?
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Radha Sahoo wrote:. . . Is it written with Java 8?
Does that mean you are asking about how to optimise Streams, particularly whether to run them in series or parallel?

While on about Streams, do you think that in a couple of new versions of Java®, the Streams API will automatically decide whether to parallelise a Stream for better performance? Do you know of anybody who is systematically collecting data about Stream performance? I know Maurice Naftalin has something about such performance in his recent book.
 
Charlie Hunt
author
Greenhorn
Posts: 11
5
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:
Radha Sahoo wrote:. . . Is it written with Java 8?
Does that mean you are asking about how to optimise Streams, particularly whether to run them in series or parallel?

While on about Streams, do you think that in a couple of new versions of Java®, the Streams API will automatically decide whether to parallelise a Stream for better performance? Do you know of anybody who is systematically collecting data about Stream performance? I know Maurice Naftalin has something about such performance in his recent book.


There has been discussions on the subject of automatically parallelizing Streams. It is a hard problem to solve. Certainly understand the value! But, based on those discussions, it will likely be a while before there is a good solution that works for everyone.

There was a rather significant performance effort that went into evaluating the performance of Streams and parallel streams during JDK 8 development by the Oracle Java Performance team.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!