MCPcopy Create free account
hub / github.com/pydata/numexpr / PySet_tempsize

Function PySet_tempsize

numexpr3/module.cpp:318–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316expect to continuously increase the number of temporaries this can avoid \
317realloc's of the arena. Set to zero to free all temporary array resources.\n");
318static PyObject*
319PySet_tempsize(PyObject *self, PyObject *args) {
320 Py_ssize_t newSize, oldSize;
321 if (!PyArg_ParseTuple(args, "n", &newSize))
322 return NULL;
323
324 pthread_mutex_lock(&gs.global_mutex);
325 oldSize = numexpr_set_tempsize(newSize);
326 pthread_mutex_unlock(&gs.global_mutex);
327
328 return Py_BuildValue("n", oldSize );
329}
330
331#ifdef USE_VML
332PyDoc_STRVAR(GetVMLVersion__doc__,

Callers

nothing calls this directly

Calls 1

numexpr_set_tempsizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…