Performance Tuning Libraries and Java 8 Stream Libraries

There are many third-party java libraries for high performance in the Java Collection. According to this DZONE Article , there are some proprietary libraries that follow the OSGI model and provide high performance in the Java Collection or also perform some other actions. Now they Java 8are launched Streamsto ensure good performance in collection libraries, and we also perform some parallel actions with Streams. Now the following questions:

  • Are Java threads more efficient than third-party libraries such as Trove, Javolutionetc.
  • Can Java 8 Streamscollections be used with other libraries?
+4
source share
1 answer
  • Problems primitive collections, even not part of the Java Collections Framework (not realized t t2 int>, List, Mapintefraces), although this does not prevent them to provide API flows in principle.

  • Trove, Javalution, and most of the other collectible libraries I keep track of do not yet support efficient streaming implementations. They do not override the method spliterator()to return an implementation Spliteratorthat should override the method trySplit()in order to take advantage of the parallel flow capabilities.

  • : Java 8: . , , " t , , .

+3

Source: https://habr.com/ru/post/1539749/


All Articles