I need to look into the performance penalty of ThreadsX.
The segfault could be due to threaded access to libhdf5. Does Julia’s HDF5 API allow concurrent access? If not, and if the input and output of myFunctionl have a small serialization overhead, you can use Folds.map with DistributedEx to use multi-process (but single-threaded) parallelization.