-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed as not planned
Labels
performancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Description
Bug description:
This specific lines in the module:
cpython/Lib/zoneinfo/_common.py
Lines 7 to 9 in ee47670
| components = key.split("/") | |
| package_name = ".".join(["tzdata.zoneinfo"] + components[:-1]) | |
| resource_name = components[-1] |
Creates a list copy with components[:-1] which can be avoided by using list unpacking, which would affect the performance slightly.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
performancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Projects
Status
Done