mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 22:32:28 +00:00
Add speedups from pyston (#264)
This should make Python go 30% faster. It does that by trading away some debuggability, like _tracemalloc. It can be re-enabled using `make MODE=dbg`.
This commit is contained in:
parent
31dd714081
commit
27f7ffd4fd
15 changed files with 175 additions and 12 deletions
4
third_party/python/Include/abstract.h
vendored
4
third_party/python/Include/abstract.h
vendored
|
@ -36,8 +36,12 @@ PyObject *_PyObject_FastCallKeywords(PyObject *func, PyObject **args,
|
|||
PyObject *_PyObject_Call_Prepend(PyObject *func, PyObject *obj, PyObject *args,
|
||||
PyObject *kwargs);
|
||||
|
||||
#ifdef USE_CHECKFUNCRESULT
|
||||
PyObject *_Py_CheckFunctionResult(PyObject *func, PyObject *result,
|
||||
const char *where);
|
||||
#else
|
||||
#define _Py_CheckFunctionResult(func, result, where) (result)
|
||||
#endif
|
||||
#endif /* Py_LIMITED_API */
|
||||
|
||||
PyObject *PyObject_CallObject(PyObject *callable_object, PyObject *args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue