Skip to content
Snippets Groups Projects
Commit 1d1e5b7c authored by Neil Vaytet's avatar Neil Vaytet
Browse files

Refs #20443 : Threading of Strings::join()

This uses openmp threads to speed up the `Strings::join()` function which was causing CreateWorkspace to be excessively slow when writing to the algorithm history.
The speedup is not fantastic as it still takes about 8s to create a 1000x10000 workspace (using 8 threads), but it is an improvement on the 60s yielded by the original function.

A new version of the `join()` function was actually added to `Strings.h`, and is used when the iterators passed as arguments are not random access in nature. If this is the case, then the original function is used.

A test was added to `StringsTest.h` to make sure both `join()` functions are being tested.
parent 534dfa97
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment