JPL-IMCE / gov.nasa.jpl.imce.oml

Ontology Modeling Language (OML) Workbench
14 stars 1 forks source link

Use Java8 parallelSort instead of Xtend ListExtensions.sortInplaceBy #228

Closed NicolasRouquette closed 6 years ago

NicolasRouquette commented 6 years ago

Xtend's ListExtensions.sortInplaceBy calls Java's Collections.sort which eventually calls the default java.util.TimSort.sort method.

Java8 has support for parallel sort using multiple threads which will scale better for large OML models than single-threaded sorting.