Consider this function: ```python def simple_func(a, b, c): if a > b: return b if b > c else c else: return 0 ``` To get good performance, we want to generate code that operates on machine integers, not Python objects. That means that we must: - Profile and record that (as is likely here) a, b, and c are all integers normally. - Generate optimized machine code that - tests that a, b, and c *are* machine integers - if not, bail out to the interpreter and deoptimize the generated code - otherwise, use the optimized machine code.
Consider this function:
To get good performance, we want to generate code that operates on machine integers, not Python objects. That means that we must: