◐ Shell
clean mode source ↗

Remove cells_frees duplicate storage from Frame by youknowone · Pull Request #7351 · RustPython/RustPython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

Cell/free variable objects were stored in both a separate
`Box<[PyCellRef]>` (cells_frees field) and in the localsplus
fastlocals array. Remove the redundant cells_frees field and
access cell objects directly through localsplus, eliminating
one Box allocation and N clone operations per frame creation.

coderabbitai[bot]

Comment on lines +743 to 744