cpython/Python
Eric Snow ac38a9f2df
bpo-43693: Eliminate unused "fast locals". (gh-26587)
Currently, if an arg value escapes (into the closure for an inner function) we end up allocating two indices in the fast locals even though only one gets used.  Additionally, using the lower index would be better in some cases, such as with no-arg `super()`.  To address this, we update the compiler to fix the offsets so each variable only gets one "fast local".  As a consequence, now some cell offsets are interspersed with the locals (only when an arg escapes to an inner function).

https://bugs.python.org/issue43693
2021-06-15 16:35:25 -06:00
..
clinic bpo-44187: Quickening infrastructure (GH-26264) 2021-06-07 18:38:06 +01:00
_warnings.c bpo-44032: Move data stack to thread from FrameObject. (GH-26076) 2021-05-21 10:57:35 +01:00
asdl.c bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933) 2021-03-23 20:47:40 +01:00
ast.c bpo-43892: Make match patterns explicit in the AST (GH-25585) 2021-04-28 22:58:44 -07:00
ast_opt.c bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318) 2021-05-23 19:06:48 +03:00
ast_unparse.c bpo-43892: Make match patterns explicit in the AST (GH-25585) 2021-04-28 22:58:44 -07:00
bltinmodule.c bpo-43892: Make match patterns explicit in the AST (GH-25585) 2021-04-28 22:58:44 -07:00
bootstrap_hash.c
ceval.c bpo-43693: Eliminate unused "fast locals". (gh-26587) 2021-06-15 16:35:25 -06:00
ceval_gil.h bpo-43268: Pass interp rather than tstate to internal functions (GH-24580) 2021-02-19 15:10:45 +01:00
codecs.c
compile.c bpo-43693: Eliminate unused "fast locals". (gh-26587) 2021-06-15 16:35:25 -06:00
condvar.h
context.c bpo-43268: Pass interp rather than tstate to internal functions (GH-24580) 2021-02-19 15:10:45 +01:00
dtoa.c Revert "bpo-40521: Make dtoa bigint free list per-interpreter (GH-24821)" (GH-24964) 2021-03-22 11:58:59 +01:00
dup2.c
dynamic_annotations.c
dynload_hpux.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c bpo-44094: Remove deprecated PyErr_ APIs. (GH-26011) 2021-05-13 13:45:26 -07:00
fileutils.c bpo-43667: Fix broken Unicode encoding in non-UTF locales on Solaris (GH-25096) 2021-04-30 15:21:42 +02:00
formatter_unicode.c bpo-28146: Fix a confusing error message in str.format() (GH-24213) 2021-05-13 13:55:55 -07:00
frozen.c bpo-43372: Use _freeze_importlib for regen-frozen. (GH-24759) 2021-03-06 13:34:03 -08:00
frozen_hello.h bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577) 2021-06-07 12:22:26 -06:00
frozenmain.c bpo-44131: Py_FrozenMain() uses PyConfig_SetBytesArgv() (GH-26201) 2021-05-20 12:08:05 +02:00
future.c bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
getargs.c bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937) 2021-05-07 11:56:48 +09:00
getcompiler.c closes bpo-43278: remove unnecessary leading '\n' from COMPILER when build with GCC/Clang (GH-24606) 2021-02-25 20:24:21 -08:00
getcopyright.c
getopt.c
getplatform.c
getversion.c
hamt.c
hashtable.c
import.c bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243) 2021-04-07 13:01:09 +02:00
importdl.c
importdl.h
importlib.h bpo-43693: Eliminate unused "fast locals". (gh-26587) 2021-06-15 16:35:25 -06:00
importlib_external.h bpo-43693: Eliminate unused "fast locals". (gh-26587) 2021-06-15 16:35:25 -06:00
importlib_zipimport.h bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577) 2021-06-07 12:22:26 -06:00
initconfig.c bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) 2021-03-29 12:28:14 +09:00
makeopcodetargets.py bpo-44337: Port LOAD_ATTR to PEP 659 adaptive interpreter (GH-26595) 2021-06-10 08:46:01 +01:00
marshal.c bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577) 2021-06-07 12:22:26 -06:00
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter (GH-26638) 2021-06-14 11:04:09 +01:00
pathconfig.c
preconfig.c bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) 2021-03-29 12:28:14 +09:00
pyarena.c bpo-43244: Remove the pyarena.h header (GH-25007) 2021-03-24 02:23:01 +01:00
pyctype.c
pyfpe.c
pyhash.c bpo-43475: Fix worst case collision behavior for NaN instances (GH-25493) 2021-04-22 08:34:57 -07:00
pylifecycle.c bpo-32280: Store _PyRuntime in a named section (GH-4802) 2021-06-04 00:37:29 +01:00
pymath.c
pystate.c bpo-44348: Move trace-info to thread-state (GH-26623) 2021-06-10 08:46:59 +01:00
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) 2021-06-03 21:01:02 +01:00
pythonrun.c bpo-43914: Highlight invalid ranges in SyntaxErrors (#25525) 2021-04-23 14:27:05 +01:00
pytime.c
README
specialize.c Add extra stats for attribute misses (GH-26732) 2021-06-15 13:01:42 +01:00
stdlib_module_names.h bpo-42955: Add _overlapped to sys.stdlib_module_names (GH-25122) 2021-04-01 02:28:23 +02:00
structmember.c
suggestions.c bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577) 2021-06-07 12:22:26 -06:00
symtable.c bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583) 2021-05-03 10:43:00 +03:00
sysmodule.c bpo-44187: Quickening infrastructure (GH-26264) 2021-06-07 18:38:06 +01:00
thread.c
thread_nt.h bpo-41299: Reduce lag in Windows threading timeouts by using a higher precision time source (GH-26568) 2021-06-07 21:26:02 +01:00
thread_pthread.h
traceback.c bpo-42800: Rename AUDIT_READ to PY_AUDIT_READ (GH-25736) 2021-04-30 01:08:55 +01:00
wordcode_helpers.h

Miscellaneous source files for the main Python shared library