mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 06:42:27 +00:00
Perform build and magnum tuning
Building o//third_party/python now takes 5 seconds on my PC This change works towards modifying Python to use runtime dispatching when appropriate. For example, when loading the magnums in the socket module, it's a good idea to check if the magnum is zero, because that means the local system platform doesn't support it.
This commit is contained in:
parent
ee7e296339
commit
d26d7ae0e4
1028 changed files with 6576 additions and 172777 deletions
76
third_party/python/Include/pydtrace.h
vendored
76
third_party/python/Include/pydtrace.h
vendored
|
@ -1,13 +1,8 @@
|
|||
/* Static DTrace probes interface */
|
||||
|
||||
#ifndef Py_DTRACE_H
|
||||
#define Py_DTRACE_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#ifdef WITH_DTRACE
|
||||
|
||||
#include "pydtrace_probes.h"
|
||||
|
||||
/* pydtrace_probes.h, on systems with DTrace, is auto-generated to include
|
||||
|
@ -25,29 +20,56 @@ extern "C" {
|
|||
|
||||
/* Without DTrace, compile to nothing. */
|
||||
|
||||
static inline void PyDTrace_LINE(const char *arg0, const char *arg1, int arg2) {}
|
||||
static inline void PyDTrace_FUNCTION_ENTRY(const char *arg0, const char *arg1, int arg2) {}
|
||||
static inline void PyDTrace_FUNCTION_RETURN(const char *arg0, const char *arg1, int arg2) {}
|
||||
static inline void PyDTrace_GC_START(int arg0) {}
|
||||
static inline void PyDTrace_GC_DONE(int arg0) {}
|
||||
static inline void PyDTrace_INSTANCE_NEW_START(int arg0) {}
|
||||
static inline void PyDTrace_INSTANCE_NEW_DONE(int arg0) {}
|
||||
static inline void PyDTrace_INSTANCE_DELETE_START(int arg0) {}
|
||||
static inline void PyDTrace_INSTANCE_DELETE_DONE(int arg0) {}
|
||||
static inline void PyDTrace_LINE(const char *arg0, const char *arg1, int arg2) {
|
||||
}
|
||||
static inline void PyDTrace_FUNCTION_ENTRY(const char *arg0, const char *arg1,
|
||||
int arg2) {
|
||||
}
|
||||
static inline void PyDTrace_FUNCTION_RETURN(const char *arg0, const char *arg1,
|
||||
int arg2) {
|
||||
}
|
||||
static inline void PyDTrace_GC_START(int arg0) {
|
||||
}
|
||||
static inline void PyDTrace_GC_DONE(int arg0) {
|
||||
}
|
||||
static inline void PyDTrace_INSTANCE_NEW_START(int arg0) {
|
||||
}
|
||||
static inline void PyDTrace_INSTANCE_NEW_DONE(int arg0) {
|
||||
}
|
||||
static inline void PyDTrace_INSTANCE_DELETE_START(int arg0) {
|
||||
}
|
||||
static inline void PyDTrace_INSTANCE_DELETE_DONE(int arg0) {
|
||||
}
|
||||
|
||||
static inline int PyDTrace_LINE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_FUNCTION_ENTRY_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_FUNCTION_RETURN_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_GC_START_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_GC_DONE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_INSTANCE_NEW_START_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_INSTANCE_NEW_DONE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_INSTANCE_DELETE_START_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_INSTANCE_DELETE_DONE_ENABLED(void) { return 0; }
|
||||
static inline int PyDTrace_LINE_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_FUNCTION_ENTRY_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_FUNCTION_RETURN_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_GC_START_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_GC_DONE_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_INSTANCE_NEW_START_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_INSTANCE_NEW_DONE_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_INSTANCE_DELETE_START_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
static inline int PyDTrace_INSTANCE_DELETE_DONE_ENABLED(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* !WITH_DTRACE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !Py_DTRACE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue