From 4308f1bbe38ee0d916a234bf33dea3669f32e16b Mon Sep 17 00:00:00 2001 From: willtyler Date: Wed, 6 Nov 2024 18:30:06 +0000 Subject: [PATCH] Revert "Release GIL while encoding VCF" This reverts commit 0a475197f56d12d7a5852c9d340311e0848c6747. --- vcztools/_vcztoolsmodule.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vcztools/_vcztoolsmodule.c b/vcztools/_vcztoolsmodule.c index 75e8d8e..0e80f7f 100644 --- a/vcztools/_vcztoolsmodule.c +++ b/vcztools/_vcztoolsmodule.c @@ -462,10 +462,8 @@ VcfEncoder_encode(VcfEncoder *self, PyObject *args) PyErr_NoMemory(); goto out; } - Py_BEGIN_ALLOW_THREADS line_length = vcz_variant_encoder_encode( self->vcf_encoder, (size_t) row, buf, (size_t) bufsize); - Py_END_ALLOW_THREADS if (line_length < 0) { handle_library_error((int) line_length); goto out;