Skip to content

GH-131798: Optimize cached class attributes and methods in the JIT #134403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add link back
  • Loading branch information
brandtbucher committed May 21, 2025
commit bb5e18edf6ce879adec034c4915d26b397f4dfd2
10 changes: 7 additions & 3 deletions Python/optimizer_symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
#include <stdint.h>
#include <stddef.h>

/* Symbols
=======
/*

Symbols
=======

https://github.com/faster-cpython/ideas/blob/main/3.13/redundancy_eliminator.md

Logically, all symbols begin as UNKNOWN, and can transition downwards along the
edges of the lattice, but *never* upwards (see the diagram below). The UNKNOWN
Expand Down Expand Up @@ -48,7 +52,7 @@ result of a truth test, which would allow us to narrow the symbol to KNOWN_VALUE
the same symbol, that would be a contradiction, and the symbol would be set to
BOTTOM (indicating that the code is unreachable).

*/
*/

#ifdef Py_DEBUG
static inline int get_lltrace(void) {
Expand Down