Mailing List Archive

[issue45256] Remove the usage of the cstack in Python to Python calls
New submission from Pablo Galindo Salgado <pablogsal@gmail.com>:

Removing the usage of the C stack in Python-to-Python calls will allow future optimizations in the eval loop to take place and can yield some speed ups given that we will be removing C function calls and preambles by inlining the callee in the same eval loop as the caller.

----------
messages: 402311
nosy: Mark.Shannon, pablogsal
priority: normal
severity: normal
status: open
title: Remove the usage of the cstack in Python to Python calls
versions: Python 3.11

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45256] Remove the usage of the cstack in Python to Python calls [ In reply to ]
Change by Pablo Galindo Salgado <pablogsal@gmail.com>:


----------
keywords: +patch
pull_requests: +26884
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28488

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45256] Remove the usage of the cstack in Python to Python calls [ In reply to ]
Change by Ken Jin <kenjin4096@gmail.com>:


----------
nosy: +kj

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45256] Remove the usage of the cstack in Python to Python calls [ In reply to ]
Change by Dong-hee Na <donghee.na@python.org>:


----------
nosy: +corona10

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45256] Remove the usage of the cstack in Python to Python calls [ In reply to ]
Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment:

AFAIK Mark Shannon proposed this idea, but it was rejected.

----------
nosy: +gvanrossum, serhiy.storchaka

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45256] Remove the usage of the cstack in Python to Python calls [ In reply to ]
Pablo Galindo Salgado <pablogsal@gmail.com> added the comment:

What was rejected was https://www.python.org/dev/peps/pep-0651/ which included this idea but had a lot more stuff in it. In particular, it was rejected because it gave semantics to overflow exceptions (two exceptions were proposed), new APIs and it had lack consistent guarantees for different platforms, among other considerations.

This version is just for optimization purposes with no changes in semantics.

----------

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45256] Remove the usage of the cstack in Python to Python calls [ In reply to ]
Change by STINNER Victor <vstinner@python.org>:


----------
nosy: +vstinner

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45256>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com