ms3 icon indicating copy to clipboard operation
ms3 copied to clipboard

Parallelizing excerpt creation [FEATURE]

Open johentsch opened this issue 10 months ago • 0 comments

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 as MSCX.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.

johentsch avatar Aug 31 '23 08:08 johentsch