Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelizing excerpt creation [FEATURE] #93

Open
johentsch opened this issue Aug 31, 2023 · 0 comments
Open

Parallelizing excerpt creation [FEATURE] #93

johentsch opened this issue Aug 31, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@johentsch
Copy link
Owner

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 johentsch added the enhancement New feature or request label Aug 31, 2023
@johentsch johentsch self-assigned this Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant