mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
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:
parent
10b97ca630
commit
7e9fb0a9f1
6 changed files with 690 additions and 124 deletions
4
third_party/python/Python/bltinmodule.c
vendored
4
third_party/python/Python/bltinmodule.c
vendored
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue