Skip to content

Commit

Permalink
Revert "Release GIL while encoding VCF"
Browse files Browse the repository at this point in the history
This reverts commit 0a47519.
  • Loading branch information
Will-Tyler authored and jeromekelleher committed Nov 19, 2024
1 parent f969899 commit 4308f1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vcztools/_vcztoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4308f1b

Please sign in to comment.