Skip to content

Commit bab52a2

Browse files
committed
stop releasing the gil
1 parent 7583fd7 commit bab52a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_impl/blake3module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static PyObject *Blake3_update_mmap(Blake3Object *self, PyObject *args,
248248

249249
printf("JACK 2\n");
250250
PyThreadState *thread_state;
251-
Blake3_release_gil_and_lock_self(self, &thread_state);
251+
// Blake3_release_gil_and_lock_self(self, &thread_state);
252252

253253
printf("JACK 3\n");
254254
const char *path_cstr = PyBytes_AS_STRING(path_bytes);
@@ -300,7 +300,7 @@ static PyObject *Blake3_update_mmap(Blake3Object *self, PyObject *args,
300300
fclose(file);
301301
}
302302
printf("JACK 11\n");
303-
Blake3_unlock_self_and_acquire_gil(self, &thread_state);
303+
// Blake3_unlock_self_and_acquire_gil(self, &thread_state);
304304
printf("JACK 12\n");
305305
Py_XDECREF(path_bytes);
306306
printf("JACK 13\n");

0 commit comments

Comments
 (0)