Skip to content

Commit

Permalink
pull that nonsense about threads running. these functions are fast en…
Browse files Browse the repository at this point in the history
…ough that this is silly
  • Loading branch information
teepark committed May 12, 2010
1 parent 3a86b19 commit bfa899f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lzf_module.c
Expand Up @@ -15,8 +15,6 @@ python_compress(PyObject *self, PyObject *args) {

if (!outlen) outlen = inlen - 2;

Py_BEGIN_ALLOW_THREADS

output = (char *)malloc(outlen);
outlen = lzf_compress(input, inlen, output, outlen + 1);

Expand All @@ -28,8 +26,6 @@ python_compress(PyObject *self, PyObject *args) {
}
free(output);

Py_END_ALLOW_THREADS

return result;
}

Expand All @@ -44,8 +40,6 @@ python_decompress(PyObject *self, PyObject *args) {
if (!PyArg_ParseTuple(args, "s#l", &input, &inlen, &outlen))
return NULL;

Py_BEGIN_ALLOW_THREADS

output = (char *)malloc(outlen);
outlen = lzf_decompress(input, inlen, output, outlen);

Expand All @@ -57,8 +51,6 @@ python_decompress(PyObject *self, PyObject *args) {
}
free(output);

Py_END_ALLOW_THREADS

return result;
}

Expand Down

0 comments on commit bfa899f

Please sign in to comment.