thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

numpy.interp does not release the GIL (Trac #2138) #5934

Open numpy-gitbot opened 11 years ago

numpy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2138 on 2012-05-22 by atmention:fengy-research, assigned to unknown.

numpy.interp does not release the GIL.

The function is implemented in _compiled_base.c

This is seems to be related to http://projects.scipy.org/numpy/ticket/80, which is closed 6 years ago(before interp gets into numpy?)

Anyhow, it appears to me it is safe to release the GIL at line 535-before the slope calculation starts and re-grab the GIL at line 553-before the destruction of all allocated objects.