-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
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
- gh-140009: Replace PyTuple_Pack with PyTuple_FromArray in _warnings #144760
- gh-140009: Optimize
dict.items()symmetric difference viaPyTuple_FromArray#144771 - gh-140009: Optimize JSON parsing with
object_pairs_hookviaPyTuple_FromArray#144772 - gh-140009: Replace PyTuple_Pack with PyTuple_FromArray in _PyCode_ConstantKey #144773
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