-
-
Notifications
You must be signed in to change notification settings - Fork 34k
Open
Labels
easyinterpreter-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 PyTuple_Pack method is relatively slow because it is a variadic function. For various cases (in particular tuples of size 1 and 2) we can replace PyTuple_Pack with PyTuple_FromArray (introduced in #111489)
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
- gh-140009: Improve performance of list_extend_dictitems by using PyTuple_FromArray #140010
- gh-140009: Optimize dict object by replacing PyTuple_Pack with PyTuple_FromArray #144529
- gh-140009: Optimize dict object by replacing PyTuple_Pack with PyTuple_FromArray #144531
- gh-140009: Improve performance of datetime extension module by using PyTuple_FromArray #144532
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
easyinterpreter-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