See discussion in faster-cpython/ideas#545.
gh-131738: optimize builtin any/all/tuple calls with a generator expr…
pythongh-131738: optimize builtin any/all/tuple calls with a generato…
Is there any plan to optimize len() in a similar way?
Could you elaborate please? Is it about len(item for item in some_tuple) case?
Is there any plan to optimize len() in a similar way? Could you elaborate please? Is it about len(item for item in some_tuple) case?
Sorry, like the benchmark in this issue: astral-sh/ruff#19419 (comment)
Activity
gh-131738: optimize builtin any/all/tuple calls with a generator expr…
pythongh-131738: optimize builtin any/all/tuple calls with a generato…
kaddkaka commented on Dec 17, 2025
Is there any plan to optimize len() in a similar way?
dolfinus commented on Dec 17, 2025
Could you elaborate please? Is it about len(item for item in some_tuple) case?
kaddkaka commented on Dec 17, 2025
Sorry, like the benchmark in this issue: astral-sh/ruff#19419 (comment)