object references/memory access

"Martin v. Löwis" martin at v.loewis.de
Tue Jul 3 17:33:37 EDT 2007


> If the problem does not require two way communication, which is
> typical of a producer-consumer, it is a lot faster to allow P to fully
> run before C is started.

Why do you say it's *a lot* faster. I find that it is a little faster.
The only additional overhead from switching forth and back between
consumer and producer is the overhead for context switching, which
is typically negligible, compared to everything else that is going
on.

Regards,
Martin



More information about the Python-list mailing list