Move importlib functions to within C (#408)

This offers a 10% speedup in Python startup time. It also
makes debugging using cosmopolitan tooling easier.
This commit is contained in:
Gautham 2022-05-27 11:50:59 +05:30 committed by GitHub
parent 10b97ca630
commit 7e9fb0a9f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 690 additions and 124 deletions

View file

@ -1186,6 +1186,10 @@ builtin_exec_impl(PyObject *module, PyObject *source, PyObject *globals,
Py_RETURN_NONE;
}
PyObject * PyBuiltin_Exec(PyObject *module, PyObject *source, PyObject *globals,
PyObject *locals) {
return builtin_exec_impl(module, source, globals, locals);
}
/* AC: cannot convert yet, as needs PEP 457 group support in inspect */
static PyObject *