Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-106869: Use new PyMemberDef constant names (#106871) | Victor Stinner | 2023-07-25 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove '#include "structmember.h"'. * If needed, add <stddef.h> to get offsetof() function. * Update Parser/asdl_c.py to regenerate Python/Python-ast.c. * Replace: * T_SHORT => Py_T_SHORT * T_INT => Py_T_INT * T_LONG => Py_T_LONG * T_FLOAT => Py_T_FLOAT * T_DOUBLE => Py_T_DOUBLE * T_STRING => Py_T_STRING * T_OBJECT => _Py_T_OBJECT * T_CHAR => Py_T_CHAR * T_BYTE => Py_T_BYTE * T_UBYTE => Py_T_UBYTE * T_USHORT => Py_T_USHORT * T_UINT => Py_T_UINT * T_ULONG => Py_T_ULONG * T_STRING_INPLACE => Py_T_STRING_INPLACE * T_BOOL => Py_T_BOOL * T_OBJECT_EX => Py_T_OBJECT_EX * T_LONGLONG => Py_T_LONGLONG * T_ULONGLONG => Py_T_ULONGLONG * T_PYSSIZET => Py_T_PYSSIZET * T_NONE => _Py_T_NONE * READONLY => Py_READONLY * PY_AUDIT_READ => Py_AUDIT_READ * READ_RESTRICTED => Py_AUDIT_READ * PY_WRITE_RESTRICTED => _Py_WRITE_RESTRICTED * RESTRICTED => (READ_RESTRICTED | _Py_WRITE_RESTRICTED) | ||||
* | gh-106320: Move _PyMethodWrapper_Type to internal C API (#107064) | Victor Stinner | 2023-07-22 | 1 | -2/+2 |
| | |||||
* | GH-100288: Specialize LOAD_ATTR for simple class attributes. (#105990) | Mark Shannon | 2023-07-10 | 1 | -13/+22 |
| | | | * Add two more specializations of LOAD_ATTR. | ||||
* | gh-106320: Fix specialize.c compilation by including pycore_pylifecycle.h ↵ | Guido van Rossum | 2023-07-04 | 1 | -0/+1 |
| | | | | | (#106434) Compilation of Python/specialize.c was broken on macOS for me by gh-106400. | ||||
* | GH-106008: Make implicit boolean conversions explicit (GH-106003) | Brandt Bucher | 2023-06-29 | 1 | -3/+110 |
| | |||||
* | gh-104584: Baby steps towards generating and executing traces (#105924) | Guido van Rossum | 2023-06-27 | 1 | -0/+4 |
| | | | | | Added a new, experimental, tracing optimizer and interpreter (a.k.a. "tier 2"). This currently pessimizes, so don't use yet -- this is infrastructure so we can experiment with optimizing passes. To enable it, pass ``-Xuops`` or set ``PYTHONUOPS=1``. To get debug output, set ``PYTHONUOPSDEBUG=N`` where ``N`` is a debug level (0-4, where 0 is no debug output and 4 is excessively verbose). All of this code is likely to change dramatically before the 3.13 feature freeze. But this is a first step. | ||||
* | GH-91095: Specialize calls to normal Python classes. (GH-99331) | Mark Shannon | 2023-06-22 | 1 | -5/+94 |
| | |||||
* | GH-105840: Fix assertion failures when specializing calls with too many ↵ | Brandt Bucher | 2023-06-16 | 1 | -2/+2 |
| | | | | __defaults__ (GH-105847) | ||||
* | GH-105229: Remove remaining two-codeunit superinstructions (GH-105326) | Mark Shannon | 2023-06-08 | 1 | -10/+0 |
| | | | | * Remove LOAD_CONST__LOAD_FAST and LOAD_FAST__LOAD_CONST superinstructions. | ||||
* | GH-105229: Replace some superinstructions with single instruction ↵ | Mark Shannon | 2023-06-05 | 1 | -11/+1 |
| | | | | equivalent. (GH-105230) | ||||
* | GH-104405: Add missing PEP 523 checks (GH-104406) | Brandt Bucher | 2023-05-12 | 1 | -0/+22 |
| | |||||
* | gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270) | Carl Meyer | 2023-05-11 | 1 | -28/+5 |
| | |||||
* | GH-102181: Improve specialization stats for SEND (GH-102182) | penguin_wwy | 2023-05-10 | 1 | -41/+45 |
| | |||||
* | gh-104184: fix building --with-pydebug --enable-pystats (#104217) | Carl Meyer | 2023-05-09 | 1 | -1/+1 |
| | |||||
* | GH-103082: Code cleanup in instrumentation code (#103474) | Mark Shannon | 2023-04-29 | 1 | -1/+1 |
| | |||||
* | gh-103978: avoid using 'class' as an identifier (#103979) | Carl Meyer | 2023-04-28 | 1 | -3/+3 |
| | |||||
* | gh-103879: Fix refleak in super specialization (#103882) | Jelle Zijlstra | 2023-04-26 | 1 | -0/+2 |
| | |||||
* | gh-87729: specialize LOAD_SUPER_ATTR_METHOD (#103809) | Carl Meyer | 2023-04-25 | 1 | -0/+55 |
| | |||||
* | GH-103082: Implementation of PEP 669: Low Impact Monitoring for CPython ↵ | Mark Shannon | 2023-04-12 | 1 | -2/+6 |
| | | | | | | | | | | (GH-103083) * The majority of the monitoring code is in instrumentation.c * The new instrumentation bytecodes are in bytecodes.c * legacy_tracing.c adapts the new API to the old sys.setrace and sys.setprofile APIs | ||||
* | GH-88691: Shrink the CALL caches (GH-103230) | Brandt Bucher | 2023-04-05 | 1 | -5/+0 |
| | |||||
* | GH-89987: Shrink the BINARY_SUBSCR caches (GH-103022) | Brandt Bucher | 2023-03-29 | 1 | -8/+8 |
| | |||||
* | GH-100982: Break up COMPARE_AND_BRANCH (GH-102801) | Brandt Bucher | 2023-03-23 | 1 | -60/+32 |
| | |||||
* | GH-101291: Rearrange the size bits in PyLongObject (GH-102464) | Mark Shannon | 2023-03-22 | 1 | -4/+4 |
| | | | | | | | | | | * Eliminate all remaining uses of Py_SIZE and Py_SET_SIZE on PyLongObject, adding asserts. * Change layout of size/sign bits in longobject to support future addition of immortal ints and tagged medium ints. * Add functions to hide some internals of long object, and for setting sign and digit count. * Replace uses of IS_MEDIUM_VALUE macro with _PyLong_IsCompact(). | ||||
* | GH-90997: Shrink the LOAD_GLOBAL caches (#102569) | Brandt Bucher | 2023-03-11 | 1 | -2/+10 |
| | |||||
* | gh-100227: Move next_keys_version to PyInterpreterState (gh-102335) | Eric Snow | 2023-03-09 | 1 | -5/+11 |
| | | | https://github.com/python/cpython/issues/100227 | ||||
* | GH-100982: Restrict `FOR_ITER_RANGE` to a single instruction to allow ↵ | Mark Shannon | 2023-02-22 | 1 | -3/+1 |
| | | | | instrumentation. (GH-101985) | ||||
* | gh-101907: Stop using `_Py_OPCODE` and `_Py_OPARG` macros (GH-101912) | Steve Dower | 2023-02-20 | 1 | -86/+86 |
| | | | | | | * gh-101907: Removes use of non-standard C++ extension from Include/cpython/code.h * Make cases_generator correct on Windows | ||||
* | GH-87849: Simplify stack effect of SEND and specialize it for generators and ↵ | Mark Shannon | 2023-02-13 | 1 | -1/+24 |
| | | | | coroutines. (GH-101788) | ||||
* | GH-100288: Skip extra work when failing to specialize LOAD_ATTR (GH-101354) | Brandt Bucher | 2023-01-31 | 1 | -60/+24 |
| | |||||
* | GH-101291: Refactor the `PyLongObject` struct into object header and ↵ | Mark Shannon | 2023-01-30 | 1 | -1/+1 |
| | | | | PyLongValue struct. (GH-101292) | ||||
* | gh-100712: make it possible to disable specialization (for debugging) (#100713) | Irit Katriel | 2023-01-19 | 1 | -0/+12 |
| | |||||
* | GH-100982: Add `COMPARE_AND_BRANCH` instruction (GH-100983) | Mark Shannon | 2023-01-16 | 1 | -42/+39 |
| | |||||
* | GH-100923: Embed jump mask in `COMPARE_OP` oparg (GH-100924) | Mark Shannon | 2023-01-11 | 1 | -27/+26 |
| | |||||
* | GH-100288: Remove LOAD_ATTR_METHOD_WITH_DICT instruction. (GH-100753) | Mark Shannon | 2023-01-05 | 1 | -3/+2 |
| | |||||
* | Revert "gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries ↵ | Ken Jin | 2022-12-23 | 1 | -10/+5 |
| | | | | | (GH-100289)" (#100468) This reverts commit c3c7848a48b74a321632202e4bdcf2f465fb1cc6. | ||||
* | gh-100288: Specialise LOAD_ATTR_METHOD for managed dictionaries (GH-100289) | Ken Jin | 2022-12-23 | 1 | -5/+10 |
| | |||||
* | GH-100459: fix copy-paste errors in specialization stats (GH-100460) | Irit Katriel | 2022-12-23 | 1 | -5/+5 |
| | |||||
* | GH-99770: Make the correct call specialization fail kind show up in the ↵ | penguin_wwy | 2022-12-22 | 1 | -63/+84 |
| | | | | stats (GH-99771) | ||||
* | gh-100188: Reduce misses in BINARY_SUBSCR_(LIST/TUPLE)_INT (#100189) | Dennis Sweeney | 2022-12-20 | 1 | -4/+12 |
| | | | Don't specialize if the index is negative. | ||||
* | GH-90043: Handle NaNs in COMPARE_OP_FLOAT_JUMP (GH-100278) | Brandt Bucher | 2022-12-16 | 1 | -10/+11 |
| | |||||
* | Improve stats presentation for calls. (GH-100274) | Mark Shannon | 2022-12-16 | 1 | -37/+22 |
| | |||||
* | Better stats for `LOAD_ATTR` and `STORE_ATTR` (GH-100295) | Mark Shannon | 2022-12-16 | 1 | -12/+35 |
| | | | | | * Don't attempt to specialize for LOAD_ATTR on instance if class has attribute * Improvement to LOAD_ATTR and STORE_ATTR specialization stats. | ||||
* | Move stats for the method cache into the `Py_STAT` machinery (GH-100255) | Mark Shannon | 2022-12-15 | 1 | -0/+5 |
| | |||||
* | GH-100222: fix typo _py_set_opocde -> _py_set_opcode (GH-100259) | Carl Meyer | 2022-12-15 | 1 | -65/+65 |
| | | | | | Typo introduced in #100223. Automerge-Triggered-By: GH:brandtbucher | ||||
* | Assorted minor fixes for specialization stats. (GH-100219) | Mark Shannon | 2022-12-14 | 1 | -17/+34 |
| | |||||
* | GH-100222: Redefine _Py_CODEUNIT as a union to clarify structure of code ↵ | Mark Shannon | 2022-12-14 | 1 | -71/+71 |
| | | | | unit. (GH-100223) | ||||
* | GH-100143: Improve collecting pystats for parts of runs (GH-100144) | Michael Droettboom | 2022-12-12 | 1 | -5/+2 |
| | | | | | | | | * pystats off by default * Add -Xpystats flag * Always dump pystats, even if turned off | ||||
* | GH-100110: Specialize FOR_ITER for tuples (GH-100109) | Ken Jin | 2022-12-09 | 1 | -0/+4 |
| | | | * Specialize FOR_ITER for tuples | ||||
* | GH-99298: Clean up attribute specializations (GH-99398) | Brandt Bucher | 2022-11-17 | 1 | -34/+29 |
| | |||||
* | GH-98686: Get rid of BINARY_OP_GENERIC and COMPARE_OP_GENERIC (GH-99399) | Brandt Bucher | 2022-11-17 | 1 | -21/+1 |
| |