[issue38015] inline function generates slightly inefficient machine code
Greg Price
report at bugs.python.org
Mon Sep 9 01:41:42 EDT 2019
Greg Price <gnprice at gmail.com> added the comment:
(Just to help keep discussions together: some earlier discussion was on GH-15216 .)
Because is_small_int / IS_SMALL_INT is so small, there's not much cost in the source code to making it a macro (as GH-15710 did).
But I think it'd be a mistake to go a lot farther than that and convert significantly larger chunks of code like get_small_int to macros (as GH-15718 would), unless the payoff were really commensurate. It'd be better to focus optimization efforts where profiling shows a lot of time is really being spent.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38015>
_______________________________________
More information about the Python-bugs-list
mailing list