On 11/12/21 5:40 pm, TobiasHT wrote:
> The right function to perform inlining on shall be determined at runtime and 
cached in the same scope as where it’s performing it’s operations from cases where 
the program performs large iterations or even in infinite loops and other cases 
that need optimization.

If it's to be a run-time optimisation, you could consider dropping
the inline declaration and just have the implementation decide
whether it's worth inlining things, based on factors such as the
size of the function and how often it's called.

Then the language wouldn't have to be changed at all, and programmers
wouldn't need to have foresight to decide when to declare things
inline.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/UXKJ4JA42IGZXN6CITX2USZKJ3FGOTRH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to