ms3
ms3 copied to clipboard
Parallelizing excerpt creation [FEATURE]
Is your feature request related to a problem? Please describe. Creating, say, all 2-measure excerpts takes a long time.
Describe the solution you'd like The excerpt creation tasks should be parallelized.
Avenue
- Follow the mechanism used in corpus.py
- Write a function that takes an
MSCX
object and the same parameters asMSCX.store_excerpt()
. - Compile a list of tuples where each tuple corresponds to the positional arguments for one call to the function (no keyword arguments possible)
- Use
starmap
.
- Write a function that takes an