GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-100239: specialize BINARY_OP/SUBSCR for list-slice (#132626) · python/cpython@5529213

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Include
    • cpython
      • pystats.h
    • internal
      • pycore_list.h
      • pycore_opcode_metadata.h
      • pycore_uop_ids.h
      • pycore_uop_metadata.h
    • opcode_ids.h
  • Lib
    • _opcode_metadata.py
  • Misc/NEWS.d/next/Core_and_Builtins
    • 2025-04-17-11-40-13.gh-issue-100239.9RxIxY.rst
  • Objects
    • listobject.c
  • Python
    • bytecodes.c
    • executor_cases.c.h
    • generated_cases.c.h
    • opcode_targets.h
    • optimizer_cases.c.h
    • specialize.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Include/cpython/pystats.h‎

Copy file name to clipboardExpand all lines: Include/cpython/pystats.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# error "this header file must not be included directly"
3030
#endif
3131

32-
#define PYSTATS_MAX_UOP_ID 512
32+
#define PYSTATS_MAX_UOP_ID 1024
3333

3434
#define SPECIALIZATION_FAILURE_KINDS 60
3535

Collapse file

‎Include/internal/pycore_list.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_list.h
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ extern "C" {
1313
#endif
1414

1515
PyAPI_FUNC(PyObject*) _PyList_Extend(PyListObject *, PyObject *);
16+
PyAPI_FUNC(PyObject) *_PyList_SliceSubscript(PyObject*, PyObject*);
1617
extern void _PyList_DebugMallocStats(FILE *out);
1718
// _PyList_GetItemRef should be used only when the object is known as a list
1819
// because it doesn't raise TypeError when the object is not a list, whereas PyList_GetItemRef does.
1920
extern PyObject* _PyList_GetItemRef(PyListObject *, Py_ssize_t i);
21+
22+
2023
#ifdef Py_GIL_DISABLED
2124
// Returns -1 in case of races with other threads.
2225
extern int _PyList_GetItemRefNoLock(PyListObject *, Py_ssize_t, _PyStackRef *);
Collapse file

‎Include/internal/pycore_opcode_metadata.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_opcode_metadata.h
+8-1Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.