-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Remove DELETE_DEREF bytecode instruction #145858
Copy link
Copy link
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
The DELETE_DEREF opcode can be removed and deletion implemented by the sequence:
LOAD_DEREF POP_TOP PUSH_NULL STORE_DEREF
This would free up an opcode, and, since deletion of non-locals variables is practically never used, there is no cost to doing this.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement