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

Change order of slicing when using _subdiagrams in Parallel calls, minor style changes #1

Merged
merged 4 commits into from
Jul 21, 2020

Conversation

ulupo
Copy link

@ulupo ulupo commented Jul 21, 2020

Reference issues/PRs
giotto-ai#428

Description
When reviewing your PR, I noticed that we are being inefficient with our calls to _subdiagrams in the context of calls to Parallel when slices are used. It is slightly more efficient to first slice X, and then call _subdiagrams on each slice to extract the subdiagrams (_subdiagrams always copies data over). Would you be happy to sneak this into giotto-ai#428? I also made a couple of other tiny changes (use len instead of .shape[0], a small improvement in plot_diagram) in passing.

@NickSale NickSale merged commit dac6aef into NickSale:joblib-mmap-mode Jul 21, 2020
@ulupo ulupo deleted the joblib-mmap-mode branch July 21, 2020 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants