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

Nogil #1519

Merged
merged 22 commits into from
May 21, 2015
Merged

Nogil #1519

merged 22 commits into from
May 21, 2015

Conversation

ahojnnes
Copy link
Member

No description provided.

@JDWarner
Copy link
Contributor

@ahojnnes Looks great so far, let us know when ready to merge.

@jni
Copy link
Member

jni commented May 20, 2015

This is tremendously exciting...!

@mrocklin
Copy link

Hooray for releasing the GIL. Curious have errors come up? We often rely on the GIL without realizing it.

When this is complete I would personally love to see a public writeup on the experience of releasing the GIL within scikit-image. I think that the community should do this more broadly; scikit-image could lead a bit here.

@ahojnnes
Copy link
Member Author

Assuming that all tests pass, I am through with "nogilling" all Cython code.

@mrocklin I think, it was pretty straightforward. It is very helpful to use cython -a ... to figure which code actually accesses Python objects (usually only the yellow lines). Going through the code once again also helped to replace some Python code with pure C code.

@stefanv
Copy link
Member

stefanv commented May 21, 2015

Stellar work! Doesn't look like NAN is recognized under Windows :/ Also, perhaps good to rebase on master.

@ahojnnes
Copy link
Member Author

Thanks Stefan. This should hopefully do the trick.

stefanv added a commit that referenced this pull request May 21, 2015
Release the GIL from Cython
@stefanv stefanv merged commit bbf3f1c into scikit-image:master May 21, 2015
@stefanv
Copy link
Member

stefanv commented May 21, 2015

This is a major step forward--thanks @ahojnnes !

@mrocklin
Copy link

Hey look, momentum pandas-dev/pandas#10199

@jreback
Copy link

jreback commented May 22, 2015

I DID ruthlessly steal your test_parallel (open-source, gotta luv it!)

@ahojnnes
Copy link
Member Author

No problem, go ahead and copy as much as you want ;-) I am glad it gets reused and look forward to feedback or ideas how to improve the testing.

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.

None yet

7 participants