• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implementation of features Java 8

 
Ranch Hand
Posts: 171
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How the new features of Java 8 could improve the performance ? To what level could one fine-tune the features and it's impact ?
 
author
Posts: 284
35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's well known that the Java folks work hard at wringing extra performance in each version of the JDK. For example, the fork-join pool (which underlies parallel streams) got a nice boost by tweaking how tasks are scheduled. And ConcurrentHashMap now does better with Comparable keys. But in general, I believe that real performance gains come from making it possible for the everyday programmer to do the right thing.

In the context of Java 8, that means parallel streams and parallel algorithms. Our challenge is to keep all those cores busy that we have at our disposal. That's hard to do by hand, but if you make a stream parallel, or call parallel sort, then it is automatic. So, if you have computationally intensive tasks, then you should be able to get a nice boost by using the new tools to distribute the work over multiple processors.

Of course, that's not the only performance issue. Some people are more troubled by garbage collection or I/O. What perfomance bottleneck do you encounter in your work?

Cheers,

Cay
 
Divya Shiv
Ranch Hand
Posts: 171
Netbeans IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Cay.

 
Just the other day, I was thinking ... about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic