Pre-PEP: Dictionary accumulator methods

Paul Rubin http
Sat Mar 19 23:23:59 CET 2005


"Raymond Hettinger" <vze4rx4y at verizon.net> writes:
> I find the disassembly (presented in the first post) to be telling.
> The compiler has done a great job and there is no fluff -- all of
> those steps have been specified by the programmer and he/she must at
> some level be aware of every one of them (pre-instantiation,
> multiple method lookups and calls, multiple dictionary accesses, etc).

If the compiler can do some type inference, it can optimize out those
multiple calls pretty straightforwardly.



More information about the Python-list mailing list