Gregory P. Smith <greg <at> krypto.org> writes:I would be surprised if this "bytecode size" difference made a significant
> food for thought as noticed by a coworker who has been profiling some hot code
to optimize a library...If a function does not have a return statement we return
None. Ironically this makes the foo2 function below faster than the bar2
function at least as measured using bytecode size
difference in runtimes, given that function call cost should dwarf the cumulated
cost of POP_TOP and LOAD_CONST (two of the simplest opcodes you could find).